Skip to content

Add username property to UsernameNotFoundException #17179

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

Closed
jzheaux opened this issue May 28, 2025 · 0 comments
Closed

Add username property to UsernameNotFoundException #17179

jzheaux opened this issue May 28, 2025 · 0 comments
Assignees
Labels
in: core An issue in spring-security-core type: enhancement A general enhancement
Milestone

Comments

@jzheaux
Copy link
Contributor

jzheaux commented May 28, 2025

Related to #16444 and #16484

It would be handy to have the not-found username as a private member of UsernameNotFoundException. When supplied, it would make so that the error message is "user not found".

@jzheaux jzheaux added this to the 7.0.0-M1 milestone May 28, 2025
@jzheaux jzheaux self-assigned this May 28, 2025
@jzheaux jzheaux added in: core An issue in spring-security-core type: enhancement A general enhancement labels May 28, 2025
jzheaux added a commit that referenced this issue May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core An issue in spring-security-core type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant