Accessing token response AuthResult
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?
This has been refactored and changed in version 11 which we plan to release in the next few days after testing
Greetings Damien
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
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
@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.
Hi @JoellyR We will make the AuthResult public through the APIs
Suggestion:
GetAuthResult(configId? : string)
Good?
that sounds good thanks for your help and your quick replies!