Package com.almis.awe.rest.autoconfigure
Class RestSecurityConfiguration
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.rest.autoconfigure.RestSecurityConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@EnableConfigurationProperties({AweRestConfigProperties.class,JWTProperties.class})
@Configuration
public class RestSecurityConfiguration
extends ServiceConfig
REST security configuration
-
Constructor Summary
ConstructorDescriptionRestSecurityConfiguration
(PublicQueryMaintainAuthorization publicQueryMaintainAuthorization, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChain
restFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) Awe Rest http security filter chainMethods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
RestSecurityConfiguration
@Autowired public RestSecurityConfiguration(PublicQueryMaintainAuthorization publicQueryMaintainAuthorization, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
restFilterChain
@Bean(name="aweRestSecurityFilterChain") @Order(99) public org.springframework.security.web.SecurityFilterChain restFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception Awe Rest http security filter chain- Parameters:
httpSecurity
- Http security- Returns:
- security filter chain
- Throws:
Exception
- exception
-