-
Notifications
You must be signed in to change notification settings - Fork 6k
Include AuthenticationRequest in AuthenticationException #16505
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
Conversation
3ecbe0f
to
872f77e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @amm0124! I've left some feedback inline.
core/src/main/java/org/springframework/security/core/AuthenticationException.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/springframework/security/core/AuthenticationException.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates! I've left some additional inline feedback.
core/src/main/java/org/springframework/security/core/AuthenticationException.java
Outdated
Show resolved
Hide resolved
Store the authentication request details in the `authRequest` field of `AuthenticationException` when an authentication exception occurs. Closes spring-projectsgh-16444 Signed-off-by: amm0124 <amm0124@naver.com>
- Add getter for reading the request - Update BadCredentialsMixing to ignore authentication - Allow exception to be mutable Issue spring-projectsgh-16444
- Isolated exception construction - Isolated entry point subscription Issue spring-projectsgh-16444
Thanks for the PR, @amm0124! In addition to your contribution, I updated the Spring Security's authentication components to use the setter when throwing exceptions in 659e7d2. I also did a slight polish of your original contribution in order to facilitate that. |
authRequest
field ofAuthenticationException
when an authentication exception occurs.@rwinch