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

Accessing token response AuthResult #536

Closed
JoellyR opened this issue Nov 27, 2019 · 6 comments · Fixed by #1142
Closed

Accessing token response AuthResult #536

JoellyR opened this issue Nov 27, 2019 · 6 comments · Fixed by #1142

Comments

@JoellyR
Copy link
Contributor

JoellyR commented Nov 27, 2019

Looking through the documentation I can not seem to find a subscription or a custom callback to use to access the response object from the access_token call. In our solution there may be extra values that get added to the token response (i.e {access_token: ..., id_token: ...., customValue: ...}. Is there any way to access this using the current functions in the library? or would this need to be an enhancement?

@damienbod
Copy link
Owner

This has been refactored and changed in version 11 which we plan to release in the next few days after testing

Greetings Damien

@JoellyR
Copy link
Contributor Author

JoellyR commented Jun 9, 2021

It seems that in version 11 there still doesnt seem to be a clean way to access this... (i can read it from session storage but i need to always change the key because its alway client_id.authnResult. Am i missing something? Or is there any road map to add this in the future? @damienbod

@damienbod
Copy link
Owner

Hi @JoellyR when have custom params which you can send and these are persisted. custom values coming backing from your STS which definition is not supported at the moment.

We have 4 or 5 different types of responses depending on the flow. So this might be difficult to support.

What do you use these for? and which response? Is this user profile data maybe? what STS do you use and which flow?

Greetings Damien

@JoellyR
Copy link
Contributor Author

JoellyR commented Jun 17, 2021

@damienbod ahhh well i guess when i see it in session storage you just seem to store w.e was sent as a response from the access_token call, under client_id_authnResult. What i would imagine is having access to something like the AuthResult interface but instead of the AuthResult interface it would be an object that is just the parsed data from inside the session storage from whatever is under the key client_id_authnResult with all the keys that were returned from the access_token call.

@damienbod
Copy link
Owner

Hi @JoellyR We will make the AuthResult public through the APIs

Suggestion:

GetAuthResult(configId? : string)

Good?

@damienbod damienbod mentioned this issue Jun 18, 2021
19 tasks
@damienbod damienbod changed the title Accessing token response object Accessing token response AuthResult Jun 18, 2021
@JoellyR
Copy link
Contributor Author

JoellyR commented Jun 18, 2021

that sounds good thanks for your help and your quick replies!

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

Successfully merging a pull request may close this issue.

2 participants