If you have any project that you want to integrate with Azure Active Directory and secure your app. Then you must try using Microsoft Authentication Library (MSAL). Yes, in this article I will introduce you to MSAL 🔥.
What is MSAL?
Microsoft Authentication Library (MSAL) gives secure access to acquire security token on-behalf of user or application and helps you to achieve single sign on.
MSAL specifies which audience can sign in to your application.
What is the audience?
Audience is the actor or client who interact with the system to whom your application authenticate. Sometimes audience can be used for the target application for which security principal is generated. Audience could be:
- Your organization
- Several Organization
- Work Organization
- School Organization
- Microsoft Personal account
- Social Identities with Azure AD B2B
- Users in Sovereign
- National Cloud (Sovereign cloud )
- Azure Government
- Azure Germany
- Azure China 21Vianet
Which Applications MSAL supports?
In your application you do not need to write code, you just install the MSAL library and configure it. MSAL will get the security tokens from Azure Identity provider for
- Web applications
- Web APIs
- Mobile & Native Applications
- Daemons & Server Side applications
Difference between ADAL & MSAL
Active Directory Authentication Library (ADAL) integrates with the Azure AD for developers (v1.0) endpoint, where MSAL integrates with the Microsoft identity platform.
What Programming Language MSAL supports?
MSAL can be used with below languages:
- .net applications
- Angular projects
- JAVA applications
- Node.js projects
This list is continuously growing please check with Microsoft document for more updates.
MSAL used for asp.net web applications is called as Microsoft Identity Web Library
Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.
Founder of Fullstack Master