Angular-oauth2-oidc: multiple oauth provider

Created on 1 Apr 2020  路  3Comments  路  Source: manfredsteyer/angular-oauth2-oidc

Hi !

I'm facing an issue/interrogation with this module and would like to know how i can make my use case work/

I have an angular front that needs two auth providers (one for users, one for employees). I've successfully configured the oAuthModule for the employee one using the following config :

const authCodeFlowConfig: AuthConfig = {
      issuer: environment.auth.issuer,
      redirectUri: environment.auth.redirectUri,
      clientId: environment.auth.clientId,
      userinfoEndpoint: environment.auth.userinfoEndpoint,
      responseType: 'code',
      scope: 'openid profile',
      showDebugInformation: false,
};

this.oauthService.tokenValidationHandler = new JwksValidationHandler();
this.oauthService.configure(authCodeFlowConfig);
this.oauthService.setupAutomaticSilentRefresh();
this.oauthService.setStorage(sessionStorage);

everything is ok at this point.
My question is : is there any way to configure another login provider within my application ? (that will be an implicit grant flow as the other provider do not handle pkce yet )

Thanks a lot

馃殌

feature-request

All 3 comments

An interesting feature request, but it was declined in this duplicate issue I'm afraid. To repeat the closing comment:

Currently, there are no plans for this. I personally would use an identity server that delegates to several other login providers and maps their tokens to a common token structure for the application.

So your best bet is to go with that, when keep using this library.

Ping me if you feel the other issue is not a duplicate and explain how it's different, I'd be happy to re-open if this is about something else.

An interesting feature request, but it was declined in this duplicate issue I'm afraid. To repeat the closing comment:

Currently, there are no plans for this. I personally would use an identity server that delegates to several other login providers and maps their tokens to a common token structure for the application.

So your best bet is to go with that, when keep using this library.

Ping me if you feel the other issue is not a duplicate and explain how it's different, I'd be happy to re-open if this is about something else.

sorry for duplicate issue and thanks for your answer

NP, just wanted to check if I hadn't missed subtleties in your question that weren't covered by the other one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CharlyRipp picture CharlyRipp  路  3Comments

kneefer picture kneefer  路  3Comments

jeroenheijmans picture jeroenheijmans  路  3Comments

jeroenheijmans picture jeroenheijmans  路  4Comments

rbkrabbe picture rbkrabbe  路  4Comments