Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

The authentication endpoint Username was not found on the configured Secure Token Service!

Posted on by 75

we have 2 servers in production. on one server we are getting the below error. got the below from server logs

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.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.ServiceProxy`1.AuthenticateCore()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.RetrieveCore(String entityName, Guid id, ColumnSet columnSet)

tried app pool reset and restful service reset in IIS and worked fine. But it is happening more often some times every 2 weeks and times once in a week.

Please let me know what could be the cause.

  • RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    I'm glad to hear it that you were able to resolve the issue. Thanks for sharing and updating the thread.

  • RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    I'm glad to hear it that issue is resolved. Thanks for sharing and updating the thread.

  • Verified answer
    Tech-CRM Profile Picture
    Tech-CRM 75 on at
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    Hi Satish

    This is resolved.

    one of the certificate is missing in the server having issue. installed the missing the server and it's working now.

  • Tech-CRM Profile Picture
    Tech-CRM 75 on at
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    both the servers are matching. i am not sure will this give you any clue.

    the same issue happened in test server at the same time happened in prod server

    we have 2 test(e.g 1, 2) and 2 pod(e.g 1, 2) servers.

    issue only in 2nd TEST and 2nd PROD servers.

  • Suggested answer
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    Thanks for sharing details. Can you check if the server which is having problem is on same update rollup as compared with working one. You can also open a ticket to investigate it further as we might need to look into your deployment to gather more details.

  • Tech-CRM Profile Picture
    Tech-CRM 75 on at
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    Hi Satish, Thanks for responding on this issue.

    The issue is intermittent only on one server, the other server is fine.

    ADFS side there is no issue.

    Do you know any other areas where i have to check to find the cause of the problem?

  • Suggested answer
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    Thanks for sharing version. Can you share the ADFS or Windows Server version where ADFS is installed ? Have you tried the steps about disabling the endpoint ?

  • Tech-CRM Profile Picture
    Tech-CRM 75 on at
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    CRM 2015 (version 7.0.3.150).

    The ADFS is not on the server where CRM installed

  • Suggested answer
    RE: The authentication endpoint Username was not found on the configured Secure Token Service!

    Hello,

    I have seen this error before and one of reason for above error is when the /adfs/services/trust/13/username endpoint is enabled, web/client will be unable to reach the usernamemixed and kerberosmixed endpoints, which causes authentication to fail. So, you can check if username endpoint is enabled and if yes, then you can disable the /adfs/services/trust/13/username endpoint and restart the ADFS service. To perform this action, please see the below steps:

    1.Open the AD FS Management Console

    2.In the left navigation pane, expand Service, and then click Endpoints.

    3.In the endpoint list, locate and right-click the /adfs/services/trust/13/username endpoint

    4.Select disable

    5.Restart the AD FS service.

    Another reason could be TLS setting, Can you share the CRM and ADFS version you are using ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans