DEV Community

loading...

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

Collapse
olafurfannsker profile image
olafurfannsker

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 "onmicrosoft.com" 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.)

regards,
Olafur