Security testing: utility methods * Compatible with @WebMvcTest * @WithMockUser for injecting simple users * @WithUserDetailsService * SecurityMockMvcRequestPostProcessors for MockMvc(Tester) * . csrf(), .opaqueToken() , .oidcLogin() ... * ... and more!
You can tell @garnier.wf's 2-hour deep dive session on "Spring Boot Testing" was packed full of useful tips, because I didn't have any time to post anything during the session!
I took one pic to remind me about #SpringSecurity and csrf when doing `WebMvcTest`.
#DevoxxUK #SpringBoot #TestingIsGood
9
2
0
0