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() |
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() throws Exception
Exception
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()
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Exception
@Bean protected KeycloakSecurityContextRequestFilter keycloakSecurityContextRequestFilter()
@Bean protected KeycloakAuthenticatedActionsFilter keycloakAuthenticatedActionsRequestFilter()
Copyright © 2020 JBoss by Red Hat. All rights reserved.