Skip to content

spring-boot: add user id to jwt token #29108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mshima
Copy link
Member

@mshima mshima commented Mar 31, 2025

Followup to #28910.

Add user id to jwt claims.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@mshima mshima closed this Apr 1, 2025
@mshima mshima reopened this Apr 1, 2025
@OAllanFernando
Copy link

Damn, that was quick! send me a coding machine!

@mshima
Copy link
Member Author

mshima commented Apr 2, 2025

It’s missing reactive test for getCurrentUserId and tests for authorize.

OAllanFernando and others added 3 commits April 3, 2025 06:23
* Test SecurityUtilsUnitTest_reactive.java.ejs

* fix indent
@mshima mshima marked this pull request as ready for review April 24, 2025 13:40
@mshima
Copy link
Member Author

mshima commented Apr 24, 2025

Would be nice to have a test to check if the userId is returned inside claims by login api.
But doesn't sounds mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants