1
0
mirror of synced 2026-05-22 13:23:17 +00:00

Propagate TestSecurityContextHolder to SecurityContextHolder

Create SecurityMockMvcResultHandlers to define security related MockMvc ResultHandlers
Create a method to allow copying the SecurityContext from the TestSecurityContextHolder to SecurityContextHolder

Closes gh-9565
This commit is contained in:
Marcus Hert da Coregio
2021-05-10 13:45:04 -03:00
committed by Marcus Hert Da Coregio
parent 017c218bbd
commit ab098f171d
4 changed files with 230 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@
<module name="io.spring.javaformat.checkstyle.SpringChecks">
<property name="excludes" value="io.spring.javaformat.checkstyle.check.SpringHeaderCheck" />
<property name="avoidStaticImportExcludes" value="org.springframework.security.test.web.reactive.server.SecurityMockServerConfigurers.*" />
<property name="avoidStaticImportExcludes" value="org.springframework.security.test.web.servlet.response.SecurityMockMvcResultHandlers.*" />
</module>
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">