Package io.dialob.boot.security
Class AbstractWebSecurityConfigurer
java.lang.Object
io.dialob.boot.security.AbstractWebSecurityConfigurer
- Direct Known Subclasses:
AbstractApiSecurityConfigurer,WebUISecurityConfigurer
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractWebSecurityConfigurer(String contextPath, TenantAccessEvaluator tenantPermissionEvaluator, AuthenticationStrategy authenticationStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.HttpSecurityconfigureAuthenticationManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureCors(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.HttpSecurityconfigureLogout(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 abstract org.springframework.security.config.annotation.web.builders.HttpSecurityconfigurePermissions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected org.springframework.security.config.annotation.web.builders.HttpSecurityconfigureRequestParameterTenantScopeFilter(org.springframework.security.config.annotation.web.builders.HttpSecurity http) protected final Stringprotected DefaultTenantGrantedAuthorityProviderprotected Optional<RequestParameterTenantScopeFilter> protected TenantAccessEvaluatorprotected org.springframework.security.web.util.matcher.RequestMatcherprotected org.springframework.security.web.util.matcher.RequestMatcher
-
Constructor Details
-
AbstractWebSecurityConfigurer
public AbstractWebSecurityConfigurer(String contextPath, TenantAccessEvaluator tenantPermissionEvaluator, AuthenticationStrategy authenticationStrategy)
-
-
Method Details
-
configureAuthenticationManager
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureAuthenticationManager(org.springframework.security.config.annotation.web.builders.HttpSecurity http) -
configurePermissions
protected abstract org.springframework.security.config.annotation.web.builders.HttpSecurity configurePermissions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
requestMatcher
protected org.springframework.security.web.util.matcher.RequestMatcher requestMatcher() -
configureMDCPrincipalFilter
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureMDCPrincipalFilter(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureRequestParameterTenantScopeFilter
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureRequestParameterTenantScopeFilter(org.springframework.security.config.annotation.web.builders.HttpSecurity http) -
configureCsrf
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureCors
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureCors(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureAuthentication
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureAuthentication(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureFrameOptions
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
configureLogout
protected org.springframework.security.config.annotation.web.builders.HttpSecurity configureLogout(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception - Throws:
Exception
-
getContextPath
-
getRequestParameterTenantScopeFilter
@NonNull protected Optional<RequestParameterTenantScopeFilter> getRequestParameterTenantScopeFilter() -
getTenantRequiredMatcher
@NonNull protected org.springframework.security.web.util.matcher.RequestMatcher getTenantRequiredMatcher() -
getTenantPermissionEvaluator
-
getDefaultTenantSupplier
-