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

Merged
merged 5 commits into from
May 6, 2025
Merged

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
Contributor

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.

@mraible
Copy link
Contributor

mraible commented May 6, 2025

@mshima Can this be merged for 8.11.0 or should we wait until v9?

@mshima
Copy link
Member Author

mshima commented May 6, 2025

@mshima Can this be merged for 8.11.0 or should we wait until v9?

Can be merged.

@mraible mraible merged commit 58805e7 into jhipster:main May 6, 2025
64 checks passed
@mraible mraible added this to the 8.11.0 milestone May 7, 2025
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.

3 participants