locked
Encountered errors when trying to set up the OAuth 2.0 endpoint on my dynamic CRM 2015 internet facing deployment? RRS feed

  • Question

  • I am following the guidelines described in https://technet.microsoft.com/en-us/library/gg188602.aspx to set up the dynamic CRM server 2015 in my local domain, everything works as expected.

    But I have some problems accessing my server with OAuth 2.0 authentication. From https://msdn.microsoft.com/en-us/library/dn531009.aspx, OAuth authentication is supported by dynamic CRM.

    "Developers who create modern and mobile apps, including apps not built on the .NET Framework, can access Microsoft Dynamics CRM business data through the SOAP and OData endpoints of the organization web service. This web service supports certain authentication capabilities found in the OAuth 2.0 protocol."

    However when I am following the link: https://github.com/nordvall/TokenClient/wiki/OAuth-2-Authorization-Code-grant-in-ADFS to perform the OAuth flow, I get the below error message information in event log when trying to get the access token.

    The error message is as below:

    Encountered error during federation passive request. 
    Exception details: 
    Microsoft.IdentityServer.RequestFailedException: MSIS7065: There are no registered protocol handlers on path /adfs/oauth2/token to process the incoming request.
       at Microsoft.IdentityServer.Web.PassiveProtocolListener.OnGetContext(WrappedHttpListenerContext context)

    I've added the OAuth 2.0 application into my crm server. My question is which steps do I missed to make the OAuth authentication works?

    Thanks in advance!





    Monday, November 9, 2015 11:40 AM