Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Azure Active Directory for Secure Application Development

You're reading from   Azure Active Directory for Secure Application Development Use modern authentication techniques to secure applications in Azure

Arrow left icon
Product type Paperback
Published in May 2022
Publisher Packt
ISBN-13 9781838646509
Length 268 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Sjoukje Zaal Sjoukje Zaal
Author Profile Icon Sjoukje Zaal
Sjoukje Zaal
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Part 1: Getting Started with the Microsoft Identity Platform
2. Chapter 1: Microsoft Identity Platform Overview FREE CHAPTER 3. Chapter 2: Azure AD Application Model 4. Chapter 3: Application Types and User Consent 5. Part 2: Authentication and Protocols
6. Chapter 4: The Basics and Evolution of Authentication 7. Chapter 5: Securing Applications with OAuth 2.0, OpenID Connect, and MSAL 8. Chapter 6:Building Secure Services Using the Microsoft Graph API 9. Part 3: Azure AD B2C
10. Chapter 7: Introducing Azure Active Directory B2C 11. Chapter 8: Advanced Features of Azure AD B2C 12. Chapter 9: Azure AD B2C Custom Policies 13. Other Books You May Enjoy

Creating a custom policy

In this demonstration, we are going to create a custom policy to store user information inside Azure Blob storage during the sign-up experience. Users will be asked to check a box that asks them whether they want to retrieve marketing information. If they check this box, the user details, such as the name and the email address, will be stored inside Azure Table storage. The custom policy will call an Azure function, which will then store the user details in the table.

The scenario will look like the following figure:

Figure 9.1 – Custom policy scenario figure

Let's start with the first step of this demonstration and prepare the Azure AD B2C tenant by registering the signing and encryption key in the Identity Experience Framework.

Creating the signing and encryption key

Before we can upload the custom policy, we first need to create a signing and encryption key inside the Identity Experience Framework in Azure AD...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image