Package com.chutneytesting.security
Class ChutneyWebSecurityConfig
- java.lang.Object
-
- com.chutneytesting.security.ChutneyWebSecurityConfig
-
@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true) public class ChutneyWebSecurityConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_BASE_URL_PATTERNstatic StringLOGIN_URLstatic StringLOGOUT_URL
-
Constructor Summary
Constructors Constructor Description ChutneyWebSecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserDtoanonymous()AuthenticationServiceauthenticationService(Authorizations authorizations)protected voidconfigureBaseHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http)org.springframework.security.web.SecurityFilterChainsecurityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
-
-
Field Detail
-
LOGIN_URL
public static final String LOGIN_URL
- See Also:
- Constant Field Values
-
LOGOUT_URL
public static final String LOGOUT_URL
- See Also:
- Constant Field Values
-
API_BASE_URL_PATTERN
public static final String API_BASE_URL_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticationService
@Bean public AuthenticationService authenticationService(Authorizations authorizations)
-
securityFilterChain
@Bean public org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Throws:
Exception
-
configureBaseHttpSecurity
protected void configureBaseHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Throws:
Exception
-
anonymous
protected UserDto anonymous()
-
-