Hi all,
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:
http://stackoverflow.com/questions/23420907/integrating-waad-on-existing-webform-asp-net
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:
System.Web.Security.WindowsTokenRoleProvider.GetCurrentWindowsIdentityAndCheckName(String userName)
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.
Thanks,
Chris