commit d1906ee1d074dc9341531e54bd97b229e855b175 Author: Julien Pivotto Date: Wed Aug 1 21:02:22 2018 +0200 Switch to new keycloak Signed-off-by: Julien Pivotto diff --git a/pom.xml b/pom.xml index 8b5c477..f29b723 100644 --- a/pom.xml +++ b/pom.xml @@ -17,14 +17,14 @@ - 1.9.0.Final + 4.1.0.Final ${project.build.directory} @@ -41,6 +41,12 @@ provided ${keycloak.version} + + org.keycloak + keycloak-server-spi-private + provided + ${keycloak.version} + org.jboss.logging jboss-logging diff --git a/src/main/java/edu/ohio/ais/keycloak/authentication/LinkIdpLoginAuthenticator.java b/src/main/java/edu/ohio/ais/keycloak/authentication/LinkIdpLoginAuthenticator.java index f9726c5..5c24f78 100644 --- a/src/main/java/edu/ohio/ais/keycloak/authentication/LinkIdpLoginAuthenticator.java +++ b/src/main/java/edu/ohio/ais/keycloak/authentication/LinkIdpLoginAuthenticator.java @@ -35,11 +35,11 @@ import org.keycloak.services.ServicesLogger; * @author Ilya Kogan */ public class LinkIdpLoginAuthenticator implements Authenticator { - protected static ServicesLogger logger = ServicesLogger.ROOT_LOGGER; + protected static ServicesLogger logger = ServicesLogger.LOGGER; public void authenticate(AuthenticationFlowContext context) { logger.debug("Auto-linking IdP login to federated identity."); - UserModel existingUser = AbstractIdpAuthenticator.getExistingUser(context.getSession(), context.getRealm(), context.getClientSession()); + UserModel existingUser = AbstractIdpAuthenticator.getExistingUser(context.getSession(), context.getRealm(), context.getAuthenticationSession()); if(existingUser != null) { context.setUser(existingUser);