Azure Active Directory for authentication

Chris Lo asked on April 22, 2015 07:52

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

Recent Answers


Drew Poggemann answered on June 19, 2015 21:39

Any updates here? We need this feature and I am hoping since Kentico really wants more Azure deployments that this is a supported configuration. Please advise.

Thanks,

Drew

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.