Just a few days ago appeared a new section in the configuration section of Microsoft Azure Websites called authentication / authorization.
From now on we can associate an Azure Active Directory application to a website without modifying a line of code.
Create an Azure Active Directory account
To test the integration, simply use the default directory of the subscription, but we can create a new one by following these steps: New > App Services > Active Directory > Directory > Create Custom. We choose a name, a domain and the country or region where It will be staying:
Associate Azure Active Directory to a Website
Once we have chosen which directory we want to use, access the website and select the CONFIGURE tab. Within it, click on the configure option in the authentication / authorization section, select the directory and the application you want to associate with the website. For this example we’ll create a new application:
Once we accept the dialog box, the related information will be in the new section:
Add users to Azure Active Directory
If we click on the AZURE ACTIVE DIRECTORY APPLICATION will access directly to the application configuration you just created. In the section appears only users who are added within the directory.
If we want to add some more, we need to do it in the Directory Users section:
For this task we have several options:
- New user (New user in your organization)
- User with an existing Microsoft Account (Live ID)
- User in another Windows Azure AD directory
For this example we will use a Microsoft Account with the role of User. Once we have chosen the type of user and role, we can return back to the application and assign users:
For more information on Azure Active Directory you can find it in the official documentation: Azure Active Directory Documentation
Hope this helps.
Happy Black Friday!