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)

Issue connecting to CRM Online through SDK with JumpCloud IDP.

(0) ShareShare
ReportReport
Posted on by

For our Office 365 authentication, we switched from ADFS to JumpCloud.

Our CRM Online integration has since stopped working.

Does Dynamics 365 SDK support connection through an external IDP (JumpCloud with saml) ?


Here is the connection string:
<add name="Server=CRM Online, organization=orgName, user=someone" connectionString="Url=orgname.crm.dynamics.com; Username=name@orgname.com; Password=pwd; authtype=Office365"/>

This is the code:


ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

CrmServiceClient conn = new Xrm.Tooling.Connector.CrmServiceClient(connectionString);

error:
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2...
Metadata contains a reference that cannot be resolved: 'sso.jumpcloud.com/login;redirectTo
=saml2/office365'.

Is it failing because the CrmServiceClient cannot handle a redirection to a SAML Endpoint? 

Any possible solutions are appreciated.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hey feel free to submit a ticket here: support.jumpcloud.com/.../new and someone from Jumpcloud will help you hash through this.

  • Community Member Profile Picture
    on at

    My guess is that this is due to the TLS change.  I had a similar issue here connecting from an Azure hosted website using the tooling connector.  Here is a post with more information.  The verified answer on this post worked in my situation:

    https://community.dynamics.com/365/f/761/t/263660

    Verified answer: 

    try to add the following code before the connection, & see if it works

    //System.Net namespace

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

  • Community Member Profile Picture
    on at

    Thanks for the reply but i tried it:

    *using latest dlls (version 9) with .NET 4.7.1 / TLS 1.2

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;                

    CrmServiceClient conn = new Xrm.Tooling.Connector.CrmServiceClient(connectionString);

  • Community Member Profile Picture
    on at

    Ah, sorry... you had it right there that you used tls 1.2.

    I wonder if the authType param in the connection string is causing an issue?  Have you tried the other options now that authentication has changed?

    docs.microsoft.com/.../use-connection-strings-xrm-tooling-connect

  • Community Member Profile Picture
    on at

    but it is still the Office365 type. Its just that now Office 365 redirects to an external IDP (that uses SAML) instead of redirecting to ADFS.

    I am guessing its failing because my console app cannot redirect to a SAML endpoint.

    Dont know what are my options.

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