Hi Team,
whenever we try to connect to IFD environment using SDK code or plugin facing an below error.
"The authentication endpoint Username was not found on the configured Secure Token Service!".
the error occurred while we try to access the available organizations on CRM serve using Discovery url.
thank you.
*This post is locked for comments
Trying to access the Organization details by using below code by using discovery serivce.
public static OrganizationDetailCollection DiscoverOrganizations(IDiscoveryService service)
{
RetrieveOrganizationsRequest orgRequest = new RetrieveOrganizationsRequest();
RetrieveOrganizationsResponse orgResponse =
(RetrieveOrganizationsResponse)service.Execute(orgRequest);
return orgResponse.Details;
}
getting below error even after changing the port number of ADFS service as mentioned.
System.NotSupportedException: The authentication endpoint Username was not found on the configured Secure Token Service!
at Microsoft.Xrm.Sdk.Client.IssuerEndpointDictionary.GetIssuerEndpoint(TokenServiceCredentialType credentialType)
at Microsoft.Xrm.Sdk.Client.AuthenticationCredentials.get_IssuerEndpoint()
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateInternal(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateFederationInternal(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceConfiguration.Authenticate(ClientCredentials clientCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateClaims()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateCore()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.Authenticate()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.get_ServiceChannel()
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1..ctor(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceContextInitializer..ctor(DiscoveryServiceProxy proxy)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
at Microsoft.Crm.Sdk.ServerConnection.DiscoverOrganizations(IDiscoveryService service)
Is the issue just when using the Discovery service, or also when using Organization.svc ? If it's the latter, then the links in the above post should help. If CRM and ADFS are on the same server, the most likely issue is that ADFS and the Sandbox service are both trying to use the same port
If the issue is just with the Discovery service, then the problem is likely to do with an incorrect DNS name, or DNS resolution for the Discovery Service Url, or back to the issues above if the Discovery Service is installed on a separate server from the Organization.svc
Hi
The error message seems to indicate something wrong with your ADFS configuration.
Please refer to the links below
blog.gagepennisi.com/.../the-authentication-endpoint-username.html
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156