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.
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) removeapi
from scope 5) since redirect uri is set toredirectUri: window.location.origin + '/',
, add a SPA redirect URIhttp://localhost:4200/
(without index.html)After the above changes are made, works flawlessly. Thanks for the sample.