Package org.tailormap.api.security
Class ApiSecurityConfiguration
java.lang.Object
org.tailormap.api.security.ApiSecurityConfiguration
@Configuration
@EnableWebSecurity
@EnableMethodSecurity
public class ApiSecurityConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.SecurityFilterChain
apiFilterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http, org.springframework.security.web.csrf.CookieCsrfTokenRepository csrfTokenRepository) org.springframework.security.authentication.AuthenticationEventPublisher
authenticationEventPublisher
(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) org.springframework.security.web.csrf.CookieCsrfTokenRepository
org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper
userAuthoritiesMapper
(GroupRepository repository)
-
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
-
userAuthoritiesMapper
@Bean public org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper userAuthoritiesMapper(GroupRepository repository)
-