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 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