Replies: 2 comments 6 replies
-
I believe we have had an issue tracking such a feature but couldn’t find it right now. One problem with OIDC is that - usually - data is not kept in sync. For example, when you use „sign in with google“ what usually happens is that your app creates a profile based on information from google and usually also allows users to set the email, password, address, … independently from Google which breaks the „sync“ between Google data and yours. In Ory Hydra what you do is that you initiate another OAuth2 flow with the „openid“ scope in order to get a new ID Token. If you do that, your consent app has the chance to update the data for the ID Token claims. I’m right now not sure if we support refreshing ID Tokens (using a refresh token and nothing else) without such a flow which would potentially introduce the need for a solution following your suggestion. |
Beta Was this translation helpful? Give feedback.
-
This feature in the form of a token refresh hook has been added 👍 |
Beta Was this translation helpful? Give feedback.
-
Storing mutable information in JWT custom claims now makes no sense as far there is no way to update it. For example, we want to store user's email in
email
claim.It would be nice to have an admin API call like "update JWT claims for all sessions of given sub" Something like
PUT /oauth2/auth/sessions/id_token?subject=blah
with an updated JWT claims as a request bodyBeta Was this translation helpful? Give feedback.
All reactions