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'm glad to hear it that you were able to resolve the issue. Thanks for sharing and updating the thread.
I'm glad to hear it that issue is resolved. Thanks for sharing and updating the thread.
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.
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.
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.
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?
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 ?
CRM 2015 (version 7.0.3.150).
The ADFS is not on the server where CRM installed
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 ?
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