Azure API Authentication with MSAL
MSAL stands for Microsoft Authetication Library enables developers to acquire security tokens from the Microsoft identity platform to autheticate users and access secured web API (documentation). Among various authtication methods, I’ll summarize how to autheticate through an interactive login in the web app built with a Flask and Python. 1. Environment variables Let’s create a .env file first for environment variables. CLIENT_ID It’s the application (client) identifier you receive when you regsiter your app in the Azure portal. Thiks of it as the unique ID that tells Azure AD who is making the request through your code. CLIENT_SECRET ...