Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC to Authenticate against Office 365 AD

If I have an Office 365 Business plan, can I build an 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?

like image 801
Wael Kabli Avatar asked Oct 13 '13 07:10

Wael Kabli


Video Answer


1 Answers

If you have an Office 365 account, you have an Azure Active Directory. When signing in to Azure, you'll have to make sure you choose to use your admin organizational account (and sign up for a free trial if you haven't yet done so). Once in the Azure portal, click on 'Active Directory' and you will see that you already have a directory.

Now, as far as MVC web application, check out the Azure Active Directory Samples on GitHub. Also be sure to look at some different scenarios which are documented on MSDN. In particular, I'd recommend looking at the WebApp-GraphAPI-DotNet which is a MVC application authenticating with OpenID Connect against Azure AD, and using this to query the AAD Graph API for details.

(Edit: updated links to new material.)

like image 96
Philippe Signoret Avatar answered Oct 04 '22 02:10

Philippe Signoret