public abstract class KeycloakWebSecurityConfigurerAdapter
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
implements org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
WebSecurityConfigurer
instance secured by Keycloak. This implementation allows customization by overriding methods.EnableWebSecurity
,
EnableWebMvcSecurity
Constructor and Description |
---|
KeycloakWebSecurityConfigurerAdapter() |
Modifier and Type | Method and Description |
---|---|
protected AdapterDeploymentContext |
adapterDeploymentContext() |
protected org.springframework.security.web.AuthenticationEntryPoint |
authenticationEntryPoint() |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
protected HttpSessionManager |
httpSessionManager() |
protected KeycloakAuthenticationProcessingFilter |
keycloakAuthenticationProcessingFilter() |
protected KeycloakAuthenticationProvider |
keycloakAuthenticationProvider() |
protected KeycloakCsrfRequestMatcher |
keycloakCsrfRequestMatcher() |
protected KeycloakLogoutHandler |
keycloakLogoutHandler() |
protected KeycloakPreAuthActionsFilter |
keycloakPreAuthActionsFilter() |
protected abstract org.springframework.security.web.authentication.session.SessionAuthenticationStrategy |
sessionAuthenticationStrategy() |
authenticationManager, authenticationManagerBean, configure, configure, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
public KeycloakWebSecurityConfigurerAdapter()
@Bean protected AdapterDeploymentContext adapterDeploymentContext() throws Exception
Exception
protected org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint()
protected KeycloakAuthenticationProvider keycloakAuthenticationProvider()
@Bean protected KeycloakAuthenticationProcessingFilter keycloakAuthenticationProcessingFilter() throws Exception
Exception
@Bean protected KeycloakPreAuthActionsFilter keycloakPreAuthActionsFilter()
protected KeycloakCsrfRequestMatcher keycloakCsrfRequestMatcher()
@Bean protected HttpSessionManager httpSessionManager()
protected KeycloakLogoutHandler keycloakLogoutHandler() throws Exception
Exception
protected abstract org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionAuthenticationStrategy()
Copyright © 2016 JBoss by Red Hat. All rights reserved.