MVC for authentication against Office 365 AD

If I have an Office 365 business plan, can I create ASP.NET MVC and authenticate against Office 365 AD? or do I still need to create a separate AD on Azure and connect to it?

+6
source share
2 answers

If you have an Office 365 account, you have Azure Active Directory. When logging into Azure, you will need to make sure that you decide to use your administrative administrator account (and sign up for a free trial if you haven't already). In the Azure portal, click "Active Directory" and you will see that you already have a directory.

Now for the MVC web application, check out the Azure Active Directory Samples on GitHub . Also, don't forget to take a look at several different scenarios that are documented on MSDN . In particular, I would recommend looking at WebApp-GraphAPI-DotNet , which is an MVC application that authenticates with OpenID Connect with Azure AD, and use this to query the AAD Graph API for details.

(Edit: Updated links to new material.)

+6
source

I would recommend that you get an enterprise azure account, and you should consolidate your users in Azure AD and then register your MVC application using the Azure Active directory to enable single sign-on.

0
source

Source: https://habr.com/ru/post/955859/


All Articles