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 :
Microsoft Dynamics CRM (Archived)

Not using ADFS, authentication endpoint not found

(0) ShareShare
ReportReport
Posted on by

Hello All,

Our situation is we are trying to use the XRM SDK (and XRMToolset) against our Dynamics 365 tenant.  Our tenant is not federated with ADFS, but rather another 3rd party IdP.  This IdP does support WS-Trust, but does not support WS-Trust 1.3.... thus, when the discovery logic executes, it cannot find the username endpoint of the WS-Trust service, and we think it is because it is looking in the wrong namespace.

According to the documentation from Microsoft on this, there is an ability to set the IssuerEndpoint.TrustVersion to WS-Trust 2005.  That reference is here:

https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.client.issuerendpoint.trustversion.aspx

We can't find a way to get the SDK samples to change to allow connecting to a WS-Trust endpoint from the following namespace: http://schemas.xmlsoap.org/ws/2005/02/trust

When we watch the connection attempts in Fiddler traces, we see that the code is indeed sweeping through the metadata endpoints and we see clearly that the WS-Trust endpoint is supplied by Microsoft in the GetUserRealm.srf call where we see the following value in the XML: STSAuthURL = https://{our IDP}/WSTrust/Service.svc/trust/username 

But again, the code dies saying it can't find the correct username endpoint.

So, my question is, can this even work with the 2005 version or does it require the 1.3 version of WS-Trust?  And if so... why the ability to set the trust version... and if we can set the trust version so that the discovery finds the correct endpoint, how can we do that?

Should we be explicitly setting the endpoint URL so that the discovery doesn't have to search the mex for it?  Again, we are not using ADFS.

Thanks!

*This post is locked for comments

I have the same question (0)

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans