You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
I defined config as below -
import { NgModule } from '@angular/core';
import { AuthModule } from 'angular-auth-oidc-client';
@NgModule({
imports: [AuthModule.forRoot({
config: {
authority: 'https://login.microsoftonline.com/https://login.microsoftonline.com/<tenantid>/v2.0/v2.0',
authWellknownEndpointUrl: 'https://login.microsoftonline.com/common/v2.0',
redirectUrl: window.location.origin,
clientId: '<clientid>',
scope: 'user_impersonation openid profile offline_access',
responseType: 'code',
silentRenew: true,
useRefreshToken: true,
maxIdTokenIatOffsetAllowedInSeconds: 600,
issValidationOff: false,
autoUserInfo: false
}
})],
exports: [AuthModule],
})
export class AuthConfigModule { }
Azure Ad is configured for single tenant but while using above config app calls common endpoint of azure ad.
While debugging found it uses default authWellKnownEndpoints from library.
Steps to reproduce the behavior
Create a new angular app with 15 or 18 version and use pkce flow with azure ad.
A clear and concise description of what you expected to happen.
It should use authroity url provided in config or there should be explanation of how to configure single tenant and multi tenant application for azure ad authentication.
Additional context
No response
The text was updated successfully, but these errors were encountered:
solved above issue by supplying authWellknownEndpointUrl along with authority. authority is mandatory but it doesn't use authority while fetching config and authWellknownEndpointUrl is not mandatory but uses it instead.
Version
15,18
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
No response
The text was updated successfully, but these errors were encountered: