Package io.dialob.boot.security
Class ApiServiceSecurityConfigurer
java.lang.Object
io.dialob.boot.security.AbstractWebSecurityConfigurer
io.dialob.boot.security.AbstractApiSecurityConfigurer
io.dialob.boot.security.ApiServiceSecurityConfigurer
@Configuration(proxyBeanMethods=false)
public class ApiServiceSecurityConfigurer
extends AbstractApiSecurityConfigurer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.security.web.util.matcher.RequestMatcher -
Constructor Summary
ConstructorsConstructorDescriptionApiServiceSecurityConfigurer(DialobSettings settings, io.dialob.security.key.ServletRequestApiKeyExtractor keyRequestExtractor, TenantAccessEvaluator tenantPermissionEvaluator, AuthenticationStrategy authenticationStrategy, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.core.env.Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.web.util.matcher.RequestMatcherprotected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureAuthentication(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureMDCPrincipalFilter(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.web.util.matcher.RequestMatcherMethods inherited from class io.dialob.boot.security.AbstractApiSecurityConfigurer
configurePermissions, getTenantRequiredMatcherMethods inherited from class io.dialob.boot.security.AbstractWebSecurityConfigurer
configureAuthenticationManager, configureCors, configureLogout, configureRequestParameterTenantScopeFilter, getContextPath, getDefaultTenantSupplier, getRequestParameterTenantScopeFilter, getTenantPermissionEvaluator
-
Field Details
-
SESSION_NOT_EXISTS_MATCHER
public static final org.springframework.security.web.util.matcher.RequestMatcher SESSION_NOT_EXISTS_MATCHER
-
-
Constructor Details
-
ApiServiceSecurityConfigurer
public ApiServiceSecurityConfigurer(@NonNull DialobSettings settings, @NonNull io.dialob.security.key.ServletRequestApiKeyExtractor keyRequestExtractor, @NonNull TenantAccessEvaluator tenantPermissionEvaluator, @NonNull AuthenticationStrategy authenticationStrategy, @NonNull org.springframework.security.authentication.AuthenticationManager authenticationManager, @NonNull org.springframework.core.env.Environment env)
-
-
Method Details
-
apiKeyRequestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher apiKeyRequestMatcher() -
requestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher requestMatcher()- Overrides:
requestMatcherin classAbstractWebSecurityConfigurer
-
configureAuthentication
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureAuthentication(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configureAuthenticationin classAbstractWebSecurityConfigurer- Throws:
Exception
-
configureCsrf
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configureCsrfin classAbstractWebSecurityConfigurer- Throws:
Exception
-
configureFrameOptions
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configureFrameOptionsin classAbstractWebSecurityConfigurer- Throws:
Exception
-
configureMDCPrincipalFilter
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureMDCPrincipalFilter(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Overrides:
configureMDCPrincipalFilterin classAbstractWebSecurityConfigurer- Throws:
Exception
-