Reader small image

You're reading from  Mastering Identity and Access Management with Microsoft Azure - Second Edition

Product typeBook
Published inFeb 2019
PublisherPackt
ISBN-139781789132304
Edition2nd Edition
Tools
Right arrow
Author (1)
Jochen Nickel
Jochen Nickel
author image
Jochen Nickel

Jochen Nickel is a Cloud, Identity and Access Management Solution Architect with a clear focus and in-depth technical knowledge of Identity and Access Management. He is currently working for inovit GmbH in Switzerland leading and executing projects in the field of Identity and Access Management including Data Classification and Information protection. Jochen is focused on Microsoft Technologies, especially in the Enterprise Mobility + Security Suite, Office 365 and Azure. He is an established speaker at many technology conferences like Azure Bootcamps, TrustInTech Meetups or the Experts Live Switzerland and Europe.
Read more about Jochen Nickel

Right arrow

Moving the single-tenant app to a multi-tenant scenario


In this section, we'll reconfigure the application to work as a multi-tenant application that you can use from other Azure AD tenants or a Microsoft personal account. With the following configuration we migrate the application:

  1. Open the Startup.cs file in your solution:
    • Comment the ConfigureAuth(app) line
    • Uncomment the ConfigureMultitenantAuth(app) line:

Modifying the code for multi-tenant usage

  1. Change the ida:TenantId value to our Azure AD domain name:

Changing the tenant ID

  1. Press F5 in Visual Studio to build and run the app.
  2. A new app will be available in Azure AD, but the users don't have roles assigned:

Check the role assignment for the newly created app

  1. Reassign the roles to the users:

Reassign roles

  1. Test logging in with your users and check the application.
  2. Test logging in with a user from another Azure AD or a Microsoft personal account.
  3. You should be able to log in:

Check the login with the guest user account

Note

You can find more information...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Identity and Access Management with Microsoft Azure - Second Edition
Published in: Feb 2019Publisher: PacktISBN-13: 9781789132304

Author (1)

author image
Jochen Nickel

Jochen Nickel is a Cloud, Identity and Access Management Solution Architect with a clear focus and in-depth technical knowledge of Identity and Access Management. He is currently working for inovit GmbH in Switzerland leading and executing projects in the field of Identity and Access Management including Data Classification and Information protection. Jochen is focused on Microsoft Technologies, especially in the Enterprise Mobility + Security Suite, Office 365 and Azure. He is an established speaker at many technology conferences like Azure Bootcamps, TrustInTech Meetups or the Experts Live Switzerland and Europe.
Read more about Jochen Nickel