Closed yingying96 closed 3 years ago
Yes. You will need to change the default authority
for the MSAL library to your tenant-specific authority. By default, MSAL uses https://login.microsoftonline.com/common
to do authentication, but that only works for multi-tenant apps. In this code:
Add a property authority
inside the auth
object, and set it to https://login.microsoftonline.com/YOUR_TENANT_ID
, where YOUR_TENANT_ID
is your tenant ID.
See https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md for details.
Yes that works. Thanks!
Current Config:
Error: Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.
Is it possible to use single tenant and resolve this error? Thanks!