testbench icon indicating copy to clipboard operation
testbench copied to clipboard

Support mocking security without Spring

Open mcollovati opened this issue 3 years ago • 0 comments

Provide a way to add authentication details to MockRequest for non spring projects. At the moment authentication details can already be injected by providing a custom MockRequestCustomizer implementation class in lookupService() method. It would be nice to activate the feature with an annotation similar to @WithMockUser, provided by spring security test framework. Presence of this annotation at class

mcollovati avatar Jun 03 '22 07:06 mcollovati