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, userDetailsServiceBeanpublic KeycloakWebSecurityConfigurerAdapter()
@Bean protected AdapterDeploymentContext adapterDeploymentContext() throws Exception
Exceptionprotected org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint()
throws Exception
Exceptionprotected KeycloakAuthenticationProvider keycloakAuthenticationProvider()
@Bean protected KeycloakAuthenticationProcessingFilter keycloakAuthenticationProcessingFilter() throws Exception
Exception@Bean protected KeycloakPreAuthActionsFilter keycloakPreAuthActionsFilter()
@Bean protected KeycloakAuthenticatedActionsFilter keycloakAuthenticatedActionsFilter()
protected KeycloakCsrfRequestMatcher keycloakCsrfRequestMatcher()
@Bean protected HttpSessionManager httpSessionManager()
protected KeycloakLogoutHandler keycloakLogoutHandler() throws Exception
Exceptionprotected 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.WebSecurityConfigurerAdapterException@Bean protected KeycloakSecurityContextRequestFilter keycloakSecurityContextRequestFilter()
Copyright © 2017 JBoss by Red Hat. All rights reserved.