angular-auth-oidc-client
angular-auth-oidc-client copied to clipboard
[Question]: Custom token endpoint
What Version of the library are you using? "angular-auth-oidc-client": "^15.0.5",
Question
How can I setup a custom /token endpoint?
I was expecting that as long as i setup the authWellknownEndpoints manually,
this might work but it does not seem to be taken into account and gets overidden
AuthModule.forRoot({
config: {
authority: 'some oauth authority that does not support pkce',
clientId: '...',
redirectUrl: window.location.origin + '/login',
postLogoutRedirectUri: window.location.origin + '/logout',
scope: 'openid profile',
responseType: 'code',
silentRenewUrl: window.location.origin + '/silent-refresh.html',
silentRenew: true,
customParamsAuthRequest:{
["token_content_type"]: "jwt"
},
disablePkce: true,
authWellknownEndpoints: {
tokenEndpoint: "https://localhost:44301/auth/token",
...
},
},
}),
Many thanks, Dan