1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 17:14:00 +00:00

fix(identity): [PM-21975] Add Security Stamp claim to persisted grant

* Added Security Stamp claim to refresh_token

* Linting

* Added better comments.

* Added clarification to naming of new method.

* Updated comments.

* Added more comments.

* Misspelling
This commit is contained in:
Todd Martin
2025-05-28 16:44:18 -04:00
committed by GitHub
parent 9ad2d61303
commit fe6181f55f
3 changed files with 83 additions and 33 deletions

View File

@@ -712,6 +712,7 @@ public static class CoreHelpers
new(Claims.Premium, isPremium ? "true" : "false"),
new(JwtClaimTypes.Email, user.Email),
new(JwtClaimTypes.EmailVerified, user.EmailVerified ? "true" : "false"),
// TODO: [https://bitwarden.atlassian.net/browse/PM-22171] Remove this since it is already added from the persisted grant
new(Claims.SecurityStamp, user.SecurityStamp),
};