DEV Community


Discussion on: Adding Authentication with Azure AD to a .NET Angular Web App with MSAL

olafurfannsker profile image

Worked like a charm, thank you. I was looking for this, saved me hours. I Needed 2 things for it to work though:

  1. Removed "" from MSALInstanceFactory in angular app.module.ts
  2. I needed to select "expose an API" in Azure and generate an Application ID URI and set the audience in appSetting.json in the API as the clientId (the same guid as is in the URI). (I'm not 100% sure if really need to generate this or just using the clientId is enough.)