I realise this is not a supported feature, but has anyone managed to use Azure Active Directory as the authentication mechanism?
I've essentially followed the directions as per this post:
I've been battling with this for a few days, and I've managed to get it to a state where the user is taken to https://login.microsoftonline.com to login. Upon redirection back to my site, though, I get this exception:
Method is only supported if the user name parameter matches the user name in the current Windows Identity.
I can see in the stacktrace that it's this method where it fails:
I'm confused as to why it's checking the current windows identity?
Having never used any kind of Active Directory authentication before (either Azure or on premises), I'm struggling to figure out what's actually going wrong.
Any help greatly appreciated.