diff --git a/pom.xml b/pom.xml index b2f00de..0478711 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ - 24.0.5 + 25.0.0 17 17 diff --git a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java index 18f44db..dc060e0 100644 --- a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java +++ b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java @@ -211,10 +211,9 @@ private BrokeredIdentityContext getFederatedIdentity( } Success success = serviceResponse.getSuccess(); - BrokeredIdentityContext user = new BrokeredIdentityContext(success.getUser()); + BrokeredIdentityContext user = new BrokeredIdentityContext(success.getUser(), config); user.setUsername(success.getUser()); user.getContextData().put(USER_ATTRIBUTES, success.getAttributes()); - user.setIdpConfig(config); user.setIdp(provider); AuthenticationSessionModel authSession = this.callback.getAndVerifyAuthenticationSession(state.replace(' ', '+'));