The SHOCKING Truth About Enriching Azure AD B2C Tokens with Custom Claims

Published: 28 August 2024
on channel: Learn Smart Coding
341
11

In this episode, we'll explore how to enhance user management in your application using Azure Functions and Azure AD B2C. Here’s what we cover:

Creating an Azure Function App (Isolated) and developing two HTTP trigger functions locally.
Setting up the first function to intercept requests from Azure AD B2C before returning claims to the user.
The first function calls a second function that automatically creates or updates the user profile in the database.
Custom claims (userId and userRoles) are derived from the database and returned in the response from the first function.
After deploying, we integrate this with Azure AD B2C by configuring the API Connector and selecting it in the user flow.
The ultimate goal is to ensure each registered user has an entry in the database and receives custom claims for better user management in the UI.
This video provides a step-by-step guide to automating user profile creation and managing custom claims efficiently in your application.

Goals in the Video:

Learn how to create and deploy an Azure Function App (Isolated) with two HTTP trigger functions.
Automate user profile creation and updates in your database upon user registration via Azure AD B2C.
Implement and return custom claims (userId and userRoles) derived from database values.
Integrate Azure Functions with Azure AD B2C using the API Connector for better user management.
Understand how to configure and use API connectors in Azure AD B2C user flows.

Repo:
https://github.com/learnsmartcoding/o...

Please post your questions in the comment section and I will be happy to answer your questions.

Subscribe for more useful videos just like this:    / @learnsmartcoding  

Happy coding!


Watch video The SHOCKING Truth About Enriching Azure AD B2C Tokens with Custom Claims online without registration, duration hours minute second in high quality. This video was added by user Learn Smart Coding 28 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 341 once and liked it 11 people.