Class SecurityConfigHelper
-
- All Implemented Interfaces:
public class SecurityConfigHelperantMatcher("/users/**") matches any path starting with /users antMatchers("/users") matches only the exact /users URL mvcMatchers("/users") matches /users, /users/, /users.html- Since:
2020-08-10
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSecurityConfigHelper.HttpHelperpublic classSecurityConfigHelper.MatcherHelper
-
Constructor Summary
Constructors Constructor Description SecurityConfigHelper()
-
Method Summary
Modifier and Type Method Description static SecurityConfigHelper.HttpHelperhttp()protected void configure(HttpSecurity http) throws Exception { http .apply(wingsPermit()) .permitAllCors(true) .and() ...; }static WingsBindAuthnConfigurer<WingsUserDetailsService>auth()static StringencodePathPattern(@NotNull() String path)encode PathPattern token to url static FakeHttpServletRequestfakeMatcherRequest(@NotNull() String path)fake the HttpServletRequest to test matcher static CorsConfigurationSourcecorsPermitAll()static Array<String>oauth2AntPaths()static Array<String>testAntPaths()static Array<String>loginAntPaths()static Array<String>swaggerAntPaths()static voidprefixMvc(String mvc, Array<String> path)-
-
Method Detail
-
http
@NotNull() static SecurityConfigHelper.HttpHelper http()
protected void configure(HttpSecurity http) throws Exception { http .apply(wingsPermit()) .permitAllCors(true) .and() ...; }
-
auth
@NotNull() static WingsBindAuthnConfigurer<WingsUserDetailsService> auth()
-
encodePathPattern
@NotNull() static String encodePathPattern(@NotNull() String path)
encode PathPattern token to url
-
fakeMatcherRequest
@NotNull() static FakeHttpServletRequest fakeMatcherRequest(@NotNull() String path)
fake the HttpServletRequest to test matcher
-
corsPermitAll
@NotNull() static CorsConfigurationSource corsPermitAll()
-
oauth2AntPaths
@NotNull() static Array<String> oauth2AntPaths()
-
testAntPaths
@NotNull() static Array<String> testAntPaths()
-
loginAntPaths
@NotNull() static Array<String> loginAntPaths()
-
swaggerAntPaths
@NotNull() static Array<String> swaggerAntPaths()
-
-
-
-