Book Image

Mastering Identity and Access Management with Microsoft Azure - Second Edition

By : Jochen Nickel
Book Image

Mastering Identity and Access Management with Microsoft Azure - Second Edition

By: Jochen Nickel

Overview of this book

Microsoft Azure and its Identity and access management are at the heart of Microsoft's software as service products, including Office 365, Dynamics CRM, and Enterprise Mobility Management. It is crucial to master Microsoft Azure in order to be able to work with the Microsoft Cloud effectively. You’ll begin by identifying the benefits of Microsoft Azure in the field of identity and access management. Working through the functionality of identity and access management as a service, you will get a full overview of the Microsoft strategy. Understanding identity synchronization will help you to provide a well-managed identity. Project scenarios and examples will enable you to understand, troubleshoot, and develop on essential authentication protocols and publishing scenarios. Finally, you will acquire a thorough understanding of Microsoft Information protection technologies.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
About Packt
Contributors
Preface
Index

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...