Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

ADX v7 External Authentication

Posted on by Microsoft Employee

Using version 7.0.0023 hosted in Azure with 2016 Update 1 online.

I've setup external authentication with Google, Facebook and Twitter, but I'm having issues with the Microsoft one. I've followed this page, as well as this one, just to confirm I was using the correct Application ID and password/secret. I've added the ID and secret to the following site settings:

Authentication/OpenAuth/Microsoft/ClientId (set the value to the Application ID Guid)

Authentication/OpenAuth/Microsoft/ClientSecret (set the value to the key provided when clicking Generate New Password)

I've set the redirect URL to http://<myportal>/signin-microsoft.

The connect button appears in the Manage External Authentication area in the Profile, but clicking on it doesn't take me to the Microsoft sign in page, it just displays an alert at the top of page saying 'Failed to add the external account.'

Have I set the site settings to the correct values, or am I missing something else? The other three providers I've setup are working fine, although for Twitter I did have to add some code to Startup.Auth.cs as per the advice given here.

Thanks,

Sam

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: ADX v7 External Authentication

    Now somewhat solved..

    Changing the redirect URL to use https rather than http, and using https with the portal makes it work. Using a combination of http and https on either side doesn't. A little strange as none of the other providers are like this, but I suppose it's not the worst thing to enforce.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans