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 public class ApiServiceSecurityConfigurer extends AbstractApiSecurityConfigurer
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.security.web.util.matcher.RequestMatcherSESSION_NOT_EXISTS_MATCHER-
Fields inherited from class io.dialob.boot.security.AbstractApiSecurityConfigurer
ALLOW_SAME_ORIGIN, PERMIT_ALL, SESSION_EXISTS_MATCHER
-
-
Constructor Summary
Constructors Constructor Description ApiServiceSecurityConfigurer(ClientApiKeyService apiKeyService, ApiKeyAuthoritiesProvider apiKeyAuthoritiesProvider, ApiKeyValidator apiKeyValidator, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.security.web.util.matcher.RequestMatcherapiKeyRequestMatcher()protected 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.RequestMatcherrequestMatcher()-
Methods inherited from class io.dialob.boot.security.AbstractApiSecurityConfigurer
configurePermissions, getTenantRequiredMatcher
-
Methods inherited from class io.dialob.boot.security.AbstractWebSecurityConfigurer
configureAuthenticationManager, configureCors, configureLogout, configureRequestParameterTenantScopeFilter, getContextPath, getDefaultTenantSupplier, getRequestParameterTenantScopeFilter, getTenantPermissionEvaluator
-
-
-
-
Constructor Detail
-
ApiServiceSecurityConfigurer
public ApiServiceSecurityConfigurer(@NonNull ClientApiKeyService apiKeyService, @NonNull ApiKeyAuthoritiesProvider apiKeyAuthoritiesProvider, @NonNull ApiKeyValidator apiKeyValidator, @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 Detail
-
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
-
-