Angular-auth-oidc-client: Dynamic custom parameters not added to silent-refresh calls

Created on 1 Dec 2020  路  5Comments  路  Source: damienbod/angular-auth-oidc-client

Is your feature request related to a problem? Please describe.

It seems that the way custom parameters are done have been refactored in the current version of the library. The way dynamic custom parameters are done is to pass them as an argument to the login function... while this works correct for the initial call ... it seems like the same custom params are not passed to the silent-renew call.

Describe the solution you'd like

I was thinking that whatever was passed as a custom param to the login function should also be passed in any silent-renew calls that happen.

Describe alternatives you've considered

There is other choices you have like passing it during config time etc.. but for me the param is something that has to be passed in at a later time.

enhancement investigate

Most helpful comment

@juanp3053 Oh my god thanks a bunch that is going to save me some major headaches! Lifesaver!

All 5 comments

Hello, I'm not sure this is the same feature but it would be great to have the ability to add "Dynamic Custom Parameters" in the forceRefreshSession similar to "authorize". In the version 10 of this library I was able to combine setCustomRequestParameters() and refreshSession() so that my STS server could provide the appropriate access token depending on the custom parameters provided.

Example:
Current

this.oidcSecurityService.authorize({ customParams: { myParam: 'Hello World!' }});

Desired

this.oidcSecurityService.forceRefreshSession({ customParams: { myParam: 'Hello World!' }});

Really liking the version 11 of this library, awesome job! Thank you.

Hi @juanp3053 thanks. , this needs to be fixed.

@damienbod i seen that you added the fix for @juanp3053 comment. (Added ability to use Custom Parameters when calling ForceRefreshSession) in the latest version. But that is on a forceRefreshSession... Will you be fixing my original issue? Which is the ability of having dynamic custom params propagated to the silent refresh requests?

@JoellyR That was very good timing I would say? :D

@juanp3053 Oh my god thanks a bunch that is going to save me some major headaches! Lifesaver!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nizarkhsib picture nizarkhsib  路  4Comments

yelhouti picture yelhouti  路  4Comments

JohnGalt1717 picture JohnGalt1717  路  3Comments

vicver82 picture vicver82  路  4Comments

xaviergxf picture xaviergxf  路  3Comments