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鈥檒l summarize how to autheticate through an interactive login in the web app built with a Flask and Python. 1. Environment variables Let鈥檚 create a .env file first for environment variables. CLIENT_ID It鈥檚 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 ...