This sample shows how to use ADAL.js to retrieve an Azure AD token to call protected Web API endpoints. Useful for SPA applications (Angular, Vue.js, etc.) that need to access a protected ASP.NET Core Web API. This also shows how to implement Azure AD group-based authorization.
Just create an App Registration in Azure, grant login permissions to it and configure the settings accordingly in appsettings.json.