-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#### What type of PR is this? /kind improvement /area core /milestone 2.13.x #### What this PR does / why we need it: In fact, PAT is a JWT, which is very long. However, we put the claim `roles` into PAT, which will cause the length of PAT to increase as the `roles` information increases. So, the current PR removes the claim `roles` from PAT, which ensures that the length of PAT becomes stable and we can update roles information for PAT at runtime. #### Which issue(s) this PR fixes: Fixes #5366 #### Does this PR introduce a user-facing change? ```release-note 避免个人令牌长度随着角色信息增长 ```
- Loading branch information
Showing
3 changed files
with
34 additions
and
74 deletions.
There are no files selected for viewing
53 changes: 0 additions & 53 deletions
53
...un/halo/app/security/authentication/jwt/JwtScopesAndRolesGrantedAuthoritiesConverter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters