jeroenheijmans/sample-angular-oauth2-oidc-with-auth-guards

Steps for Azure AD

blagerweij opened this issue · 2 comments

Required changes for Azure AD:

  1. add strictDiscoveryDocumentValidation: false, to auth-config.ts (Azure uses several domain names)
  2. update issuer: issuer: 'https://login.microsoftonline.com/{tenant-id}/v2.0',
  3. update clientId with the correct application id
  4. remove api from scope
  5. since redirect uri is set to redirectUri: window.location.origin + '/',, add a SPA redirect URI http://localhost:4200/ (without index.html)

After the above changes are made, works flawlessly. Thanks for the sample.

Thanks for the addition! I'll link to your steps in the README. 😊❤️

Added a link over here.