From 2ba33a5bf0b62d9fa7b27dab94999fae83da3c45 Mon Sep 17 00:00:00 2001 From: olivier le rigoleur Date: Fri, 2 Aug 2024 10:17:52 +0200 Subject: [PATCH] make code compatible with kck 25.X Signed-off-by: olivier le rigoleur --- pom.xml | 18 ++++++++++++++++-- .../FranceConnectIdentityProvider.java | 3 ++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c429b05..7e427da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ fr.insee.keycloak keycloak-franceconnect - 6.5.0-SNAPSHOT + 7.0.0-SNAPSHOT ${project.groupId}:${project.artifactId} France Connect Openid-Connect Provider for Keycloak @@ -68,7 +68,7 @@ 3.3.0 3.5.0 - 24.0.2 + 25.0.2 5.10.0 @@ -158,6 +158,20 @@ + + + jakarta.xml.bind + jakarta.xml.bind-api + 4.0.2 + + + + com.sun.xml.bind + jaxb-impl + 4.0.2 + runtime + + org.keycloak keycloak-core diff --git a/src/main/java/fr/insee/keycloak/providers/franceconnect/FranceConnectIdentityProvider.java b/src/main/java/fr/insee/keycloak/providers/franceconnect/FranceConnectIdentityProvider.java index 7903392..4b723fe 100644 --- a/src/main/java/fr/insee/keycloak/providers/franceconnect/FranceConnectIdentityProvider.java +++ b/src/main/java/fr/insee/keycloak/providers/franceconnect/FranceConnectIdentityProvider.java @@ -86,8 +86,9 @@ public JsonWebToken validateToken(String encodedToken) { protected BrokeredIdentityContext extractIdentity( AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) throws IOException { + var config = getConfig(); var id = idToken.getSubject(); - var identity = new BrokeredIdentityContext(id); + var identity = new BrokeredIdentityContext(id, config); var name = (String) idToken.getOtherClaims().get(IDToken.NAME); var givenName = (String) idToken.getOtherClaims().get(IDToken.GIVEN_NAME);