web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

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

(0) ShareShare
ReportReport
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.

I have the same question (0)
  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    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 ?

  • Tech-CRM Profile Picture
    75 on at

    CRM 2015 (version 7.0.3.150).

    The ADFS is not on the server where CRM installed

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    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
    75 on at

    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
    Satish Tiwari - CRM Profile Picture
    on at

    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
    75 on at

    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.

  • Verified answer
    Tech-CRM Profile Picture
    75 on at

    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.

  • Satish Tiwari - CRM Profile Picture
    on at

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

  • Satish Tiwari - CRM Profile Picture
    on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans