angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Question]: Custom token endpoint

Open dandohotaru opened this issue 2 years ago • 0 comments

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

dandohotaru avatar Jun 07 '23 12:06 dandohotaru