Azure Active Directory authentication sample for DotVVM
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Azure Active Directory Authentication Sample for DotVVM

This is a sample app featuring the Azure Active Directory authentication sample for DotVVM.


  1. Sign in to the Azure Portal and open (or create) your Azure Active Directory resource.

  2. Open the Properties tab and copy the Directory ID value. Paste it in the TenantId application setting in the web.config file in OWIN or appsettings.json in ASP.NET Core.

  3. Open the App registrations tab and open (or create) the app registration.

  4. Copy the Application ID value and paste it in the ClientId application setting in the web.config file.

  5. Make sure that the URL on which the web app is running, is listed in the Home Page field or in the Reply URLs section. The URL must match including the HTTP/HTTPS and port.

  6. In ASP.NET Core version, set the PostLogoutRedirectUri application setting to the application root URL.

Now the application should work with all accounts from the directory.


If you want to make the application multi-tenant (to allow the users to sign in even if they are from a different Azure Active Directory tenant), you need to make these changes:

  1. In the Properties tab of the App Registration, switch the Multi-tenanted field to Yes.

  2. In the web.config or appsettings.json, change the TenantId to the value common.