locked
CRM 2011 Single sign on with windows authentication RRS feed

  • Question

  • Hi All,

    could someone please tell me if it is possible to 

    1. Sign-in to CRM that uses windows authentication

    2. Click a link on a CRM-form that will take me to a custom application

    3. Within the application it should be able to know who was logged-in to CRM when the click was made

    4. I should be able to do it without loggin-in to my windows account/domain, i.e. I will be accessing CRM over intertent, provide my user name and password to CRM (that are my windows user name and password when I am inside the organization building)

    5. Do it WITHOUT ADFS

    6. Obviously, I do not want to type it the password second time.

    Most of the related topics discuss use of ADFS or they use predefined/hardcoded or default network credentials. I want to use the credentials of the actual user that is logged in to the CRM system.


    Thanks in advance!


    Kotena

    Thursday, July 5, 2012 5:23 AM

Answers

  • hi if your application is hosted in same CRM Server,

    custom application never asks for password otherwise ,it will asks password always

    and this is sample of how to get OrganizationService

     ClientCredentials credentials = new ClientCredentials();        
    var _serviceProxy = new OrganizationServiceProxy(new Uri("http://local:5555/myOrg/XRMServices/2011/Organization.svc"),
                                                                       null,
                                                                        credentials,
                                                                        null);



    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    • Proposed as answer by san Sanz Thursday, July 5, 2012 5:41 AM
    • Marked as answer by Kotena Thursday, July 5, 2012 6:17 AM
    Thursday, July 5, 2012 5:40 AM

All replies

  • hi if your application is hosted in same CRM Server,

    custom application never asks for password otherwise ,it will asks password always

    and this is sample of how to get OrganizationService

     ClientCredentials credentials = new ClientCredentials();        
    var _serviceProxy = new OrganizationServiceProxy(new Uri("http://local:5555/myOrg/XRMServices/2011/Organization.svc"),
                                                                       null,
                                                                        credentials,
                                                                        null);



    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    • Proposed as answer by san Sanz Thursday, July 5, 2012 5:41 AM
    • Marked as answer by Kotena Thursday, July 5, 2012 6:17 AM
    Thursday, July 5, 2012 5:40 AM
  • Hi, unfortunately my application is not on the same server but within the same domain.

    Kotena

    Thursday, July 5, 2012 5:49 AM