Online CRM with Federated ADFS Not working with Plug-in Registration Tool and Third Party .Net Application RRS feed

  • Question

  • Hello,

    We are using Microsoft Dynamics CRM Online version since longer and everything was working fine however recently we have added Centrify for authenticating user and implementing Single Sign On.

    So in a browser as soon as I entered my user name it redirect me on Centify SSO page and validate my credentials using my Local Active Directory, and bring me back on my CRM Application.

    However any of our outside applications which are connecting to Dynamics CRM are not working. Then I tried with Plugin Registration Tool of SDK 2016 version and then when I select Office 365 Option and do not enter any credentials it open a pop up for Login, here it works fine same way as browser redirect me into SSO page but when I enter Location(North America), username and Password with Advance option it keep failing and gives me following 2 errors renodmly

    1. “The authentication endpoint Username was not found on the configured Secure Token Service”
    2. “ Source               : Microsoft.IdentityModel.Clients.ActiveDirectory

    Method                : RunAsyncTask

    Date      : 6/22/2016

    Time      : 3:02:17 PM

    Error      : wstrust_endpoint_not_found: WS-Trust endpoint not found in metadata document

    Stack Trace         : at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task`1 task)

       at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireToken(String resource, String clientId, UserCredential userCredential)

       at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ObtainAccessToken(AuthenticationContext authenticationcontext, String resource, String clientId, ClientCredentials clientCredentials)

       at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, ClientCredentials clientCredentials, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath, Boolean isOnPrem, String authority)

       at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.QueryOAuthDiscoveryServer(Uri discoServer, ClientCredentials liveCreds, UserIdentifier user, String clientId, Uri redirectUri, PromptBehavior promptBehavior, String tokenCachePath)

       at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.FindCrmOnlineDiscoveryServer(ClientCredentials liveCreds)

       at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)

    ======================================================================================================================”Plugin Registration Tool with Federated ADFS with Online CRM

    Wednesday, June 22, 2016 9:40 AM