Use Windows Azure Active Directory to Register New Users on the MVC 4 Website

I am trying to use Windows Azure Active Directory as an identity provider for my MVC 4 application and have to figure out how to implement the user registration feature. I know that the Graph API can be used to update WAAD. However, after reading http://msdn.microsoft.com/en-us/library/windowsazure/dn151791.aspx , I realized that in order to use the Graph API, the user must authenticate through WAAD in the first place, only then he will receive a token that will be used with Graph API. But what if I have an unregistered user who wants to register? How to create an entry for it in WAAD? Can I use the Service Principle in any way to get a token, bypassing the user who needs to log in? How can I do this if so?

I would be very grateful if you can point me in the right direction and provide me with a series of steps, tutorials, and code examples that I can use to solve my problem.

+4
source share
1 answer

I do not think that the user should be registered first. This app contains read / write permissions in WAAD. If the application is registered in WAAD and contains the necessary write permissions, then the application and WAAD request and add new users to the directory.

+4
source

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


All Articles