Storing extra information on a refresh token #364
Replies: 1 comment 5 replies
-
|
Would you mind sharing some more details about what information you want to store and why? How will this information be used? If we know more about the scenario and the problem you are trying to solve, we can offer better help. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We would like to add extra information to a refresh token. For example, IP address and other data that we don't want to expose in the claims.
There's no "Parameters" property that we can use. One possibility would be to use a custom
RefreshTokenclass but it seems difficult to use another class: anew RefreshToken()is done in DefaultRefreshTokenService.cs. https://github.com/DuendeSoftware/products/blob/fc7c49cf5d51860acb662783ab9fd8e951f8317a/identity-server/src/IdentityServer/Services/Default/DefaultRefreshTokenService.cs#L206Customizing/overriding CreateRefreshTokenAsync would probably be a maintenance hassle.
The only possible alternative is to use the Description property but putting many properties in it is not ideal.
Any other idea?
Beta Was this translation helpful? Give feedback.
All reactions