You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the default was an HttpSessionSecurityContextRepository which
meant that if a stateless authentication occurred the SecurityContext would
be lost on ERROR dispatch.
This commit ensures that the RequestAttributeSecurityContextRepository is
also consulted by default.
Closesspring-projectsgh-12070
Describe the bug
When an error occurs during the request, an authenticated user is shown a
401 Unauthorized
instead of a Spring Boot error page.To Reproduce
See sample below.
Expected behavior
Authenticated users should be shown an error page. The following response is expected:
Sample
Related gh-12023
The text was updated successfully, but these errors were encountered: