Angular-auth-oidc-client: [Enhancement] : Is there any way to update post logout redirect uri after successful login.

Created on 18 Mar 2021  路  5Comments  路  Source: damienbod/angular-auth-oidc-client

Is there any way to update post logout redirect URI after successful login.

I have multiple post logout redirect uris in my sts server ... , I need to set post logout redirect uri dynamically based on logged in user.

Please guide me how can I achieve this.

Thanks,

question

All 5 comments

HI @abdullahqudeer you would have to implement this yourself, we haveing nothing here. You would need to persist something to a local storage and then react as your requirements define this.

@damienbod are you saying this is out of the scope of this library? On my side I would find it very useful to have it mutualized in the authentication library so here.

@damienbod , Thanks for you reply ... I have managed to update configuration as below.

this.oidcSecurityService.configuration.configuration.postLogoutRedirectUri="any post logout url"

But I would suggest to add a proper way to update these kind of configuration in some future release.

Hi @hadrien-toma @abdullahqudeer yes. You can only define explicit postLogoutRedirectUri values which are also defined on the OIDC server. So if you can define all the required URLs on the STS, then you can use anyone of these. If the URLs can be anything, then you need to implement something yourself.

Greetings Damien

Thank you for your reply @damienbod, this makes sense 馃檪. As having a wild card on the SSO configuration isn't recommanded, I will implement this redirection in the component called behind the "/redirect" route.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xaviergxf picture xaviergxf  路  3Comments

toddtsic picture toddtsic  路  4Comments

hannesrohde picture hannesrohde  路  3Comments

yelhouti picture yelhouti  路  4Comments

Roman1991 picture Roman1991  路  4Comments