-
Notifications
You must be signed in to change notification settings - Fork 6.1k
SecurityContextRequestPostProcessorSupport small-improvements #6857
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
Comments
Thank you for reaching out @ch4mpy Can you describe what you are trying to achieve that is not simple at this time? |
@rwinch I can't contribute test Use case at the very bottom of https://github.com/ch4mpy/spring-security/blob/gh-6634--jwt-reactive-flow/test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java, |
@rwinch, I won't be able any longer to execute changes you would request. When opening this ticket, I thought a week would have been enough to solve it. I now have to go at sea, with almost no Internet connection for the coming two month, sorry. I hope I managed to give modification rights to Spring team. Please note there are two commits on this branch:
|
I'm closing this as invalid because user's can easily delegate to the existing public APIs to achieve the same things. For example: @Override
public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {
Authentication authentication = ...;
return SecurityMockMvcRequestPostProcessors.authentication(token).postProcessRequest(request);
} |
SecurityContextRequestPostProcessorSupport
does not define abstract method. There is no need for it to be abstractSecurityContextRequestPostProcessorSupport
is stateless. There is no need for it to be a parent class, it can be a collaborator or an interface insteadSecurityContextRequestPostProcessorSupport
andTestSecurityContextRepository
could be of great use to framework users wishing to extend testing features.I'm asking to change
SecurityContextRequestPostProcessorSupport
anTestSecurityContextRepository
visibility topublic
.I also propose to modify existing request post-processors so that it use
SecurityContextRequestPostProcessorSupport
as collaborator instead of extending it.The text was updated successfully, but these errors were encountered: