Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extraTokenParams in UserManager.signinSilent() #1257

Closed
MathiasRossen opened this issue Nov 21, 2023 · 0 comments · Fixed by #1258
Closed

Allow extraTokenParams in UserManager.signinSilent() #1257

MathiasRossen opened this issue Nov 21, 2023 · 0 comments · Fixed by #1258

Comments

@MathiasRossen
Copy link

MathiasRossen commented Nov 21, 2023

I have a problem with not being able to put any extra params with signinSilent.

I have studied the code and it seems that most params are disregarded, when using refreshToken.

In our authorization flow I have to specify which context I am currently using, which is done by sending extra parameters with the refresh_token. For example if I want to change which organization I am currently representing, I will put in { organization_id: ... } in which the authorization endpoint will return an id token with extra keys representing this: { ..., context: { organization_id: "123" } }.

This was possible in the oidc-client-js library by calling signinSilent({ organization_id: "123" }).

I have forked this library and have made modifications to suit this need, and I am willing to make a pull request with these changes.

EDIT: I have made a pull request for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant