Book Image

Azure Active Directory for Secure Application Development

By : Sjoukje Zaal
Book Image

Azure Active Directory for Secure Application Development

By: Sjoukje Zaal

Overview of this book

Azure Active Directory for Secure Application Development is your one-stop shop for learning how to develop secure applications using modern authentication techniques with Microsoft Azure AD. Whether you’re working with single-tenant, multi-tenant, or line-of-business applications, this book contains everything you need to secure them. The book wastes no time in diving into the practicalities of Azure AD. Right from the start, you’ll be setting up tenants, adding users, and registering your first application in Azure AD. The balance between grasping and applying theory is maintained as you move from the intermediate to the advanced: from the basics of OAuth to getting your hands dirty with building applications and registering them in Azure AD. Want to pin down the Microsoft Graph, Azure AD B2C, or authentication protocol best practices? We’ve got you covered. The full range of Azure AD functionality from a developer perspective is here for you to explore with confidence. By the end of this secure app development book, you’ll have developed the skill set that so many organizations are clamoring for. Security is mission-critical, and after reading this book, you will be too.
Table of Contents (14 chapters)
1
Part 1: Getting Started with the Microsoft Identity Platform
5
Part 2: Authentication and Protocols
9
Part 3: Azure AD B2C

Restricting your Azure AD app to a set of users

When you register an application inside the Azure AD tenant, it is available to all users that authenticate successfully to the tenant. In addition, in the case of registering a multi-tenant app, all users in all the Azure AD tenants where the app is provisioned will have access to the apps by default.

In a lot of scenarios, apps must be restricted to a certain set of users. This can be done easily by adding groups or users to the Enterprise app service principal in Azure AD.

In the next demonstration, we are going to add a user that is already added to Azure AD to the app; therefore, we first need to update the Enterprise app to require user assignment.

Updating the app to require user assignment

First, we need to make some changes to the Enterprise app to require user assignment for it; therefore, we need to take the following steps:

  1. In the overview page of Azure, select Azure Active Directory.
  2. Under Manage...