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
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.
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156