-
Notifications
You must be signed in to change notification settings - Fork 40.6k
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
Test using @WithMockUser fails with 401 UNAUTHORIZED with 3.2 #38540
Comments
|
@wilkinsona Could you please move this issue to Spring Security? Perhaps they might instantly have an idea for the root cause even without the time-consuming creation of a sample project. |
Unfortunately not. To be able to move an issue you have to have commit rights to both the source and target repository and no one on the Boot team is a Spring Security committer. You may, of course, close this issue and open a Spring Security issue if "moving" the issue is your preferred course of action. |
Then I'll create a new one over there and keep this one open only as long as there isn't a solution. |
We prefer not to have two open issues tracking the same problem as it may result in duplicate and wasted effort. I'll close this one in favor of spring-projects/spring-security#14207 for now. If it turns out that a change is needed on the Spring Boot side, we can re-open this issue. |
The following test works with 3.1, but fails with 401 UNAUTHORIZED with 3.2:
A custom MapReactiveUserDetailsService has been in place and it looks like this:
The text was updated successfully, but these errors were encountered: