oidc-client-js
oidc-client-js copied to clipboard
Is there a way to add additional metadata to the user object?
After I load the user, I go to PolicyServer and gather its policies. I want to store this locally along with my tokens and all that and get it from the user manager.
Is there a way to do this?
Not really. You'd have to gather them at IS and put those as claims in the id_token or profile.
@brockallen Can we label this as enhancement?
Feature request:
-
updateUser()
- Allow tapping into the storage pipeline to add additional metatdata to a user, like PolicyServer data, or anything else. Similar to usingstate
in authorize params.
Perhaps a callback to modify the user?
Sounds good to me, off which method? I would say signinRedirectCallback
but you need the user most of the time before you can do anything.
Don't know and I don't foresee having the time to look into this anytime soon (I just released 1.9.0 this morning).
Well, if we figure out where we want it I might have the bandwidth to do it. And if I cant get to it right away the community will see the design here and someone may knock it out.