Class ApiSecurityConfiguration

java.lang.Object
org.tailormap.api.security.ApiSecurityConfiguration

@Configuration @EnableWebSecurity @EnableMethodSecurity public class ApiSecurityConfiguration extends Object
  • Constructor Details

    • ApiSecurityConfiguration

      public ApiSecurityConfiguration()
  • Method Details

    • csrfTokenRepository

      @Bean public org.springframework.security.web.csrf.CookieCsrfTokenRepository csrfTokenRepository()
    • authenticationEventPublisher

      @Bean public org.springframework.security.authentication.AuthenticationEventPublisher authenticationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • apiFilterChain

      @Bean public org.springframework.security.web.SecurityFilterChain apiFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.security.web.csrf.CookieCsrfTokenRepository csrfTokenRepository) throws Exception
      Throws:
      Exception
    • clientRegistrationRepository

      @Bean public OIDCRepository clientRegistrationRepository(OIDCConfigurationRepository repository)
    • userAuthoritiesMapper

      @Bean public org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper userAuthoritiesMapper(GroupRepository repository)