From df93244373f175176df2beffda61a925f7cfc06c Mon Sep 17 00:00:00 2001 From: sebastienblanc Date: Sat, 26 Nov 2016 09:30:27 +0100 Subject: [PATCH] keep orignal API --- .../config/KeycloakWebSecurityConfigurerAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/config/KeycloakWebSecurityConfigurerAdapter.java b/adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/config/KeycloakWebSecurityConfigurerAdapter.java index 42503efeab..816da9e82b 100644 --- a/adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/config/KeycloakWebSecurityConfigurerAdapter.java +++ b/adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/config/KeycloakWebSecurityConfigurerAdapter.java @@ -71,8 +71,8 @@ public abstract class KeycloakWebSecurityConfigurerAdapter extends WebSecurityCo return factoryBean.getObject(); } - protected AuthenticationEntryPoint authenticationEntryPoint(AdapterDeploymentContext adapterDeploymentContext) throws Exception { - return new KeycloakAuthenticationEntryPoint(adapterDeploymentContext); + protected AuthenticationEntryPoint authenticationEntryPoint() throws Exception { + return new KeycloakAuthenticationEntryPoint(adapterDeploymentContext()); } protected KeycloakAuthenticationProvider keycloakAuthenticationProvider() { @@ -117,7 +117,7 @@ public abstract class KeycloakWebSecurityConfigurerAdapter extends WebSecurityCo .and() .addFilterBefore(keycloakPreAuthActionsFilter(), LogoutFilter.class) .addFilterBefore(keycloakAuthenticationProcessingFilter(), BasicAuthenticationFilter.class) - .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint(adapterDeploymentContext())) + .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint()) .and() .logout() .addLogoutHandler(keycloakLogoutHandler())