ZCoder
ZCoder

Reputation: 2349

Asp.net MVC form Authentication Application conversion to Azure Active Directory

We have an old application which developed on Asp.net MVC 3 I convert it and update from 4.0 to 4.6 framework things are working pretty good. Just got one more request to convert the application to use Azure Active Directory authentication. We are using form authentication right now.

The issue I am having is the application is so huge, and the application has its custom roles and authentications for every single page.

So what I am trying to achieve register app on the Active directory and when a user opens my application it redirect it to office 360 login, and he can log in there and redirect to the application and return me his email address. After that, I can verify the user and log in it to the application from the backhand code using old form authentication and create session etc.

Upvotes: 0

Views: 561

Answers (1)

Rohit Saigal
Rohit Saigal

Reputation: 9684

If you're looking for a starting point, here are a couple of relevant samples that work with ASP.NET MVC web application using Azure AD for Authentication.

Additionaly, to tackle the custom roles that you mention as part of your current application, you could look at using Application Roles supported by Azure AD and also Security Groups which is what these samples show.

Authorization in a web app using Azure AD application roles & role claims

Authorization in a web app using Azure AD groups & group claims

Here are similar SO posts where I've covered a little bit more detail on the claims and implementation which you may find relevant.

Upvotes: 1

Related Questions