From 667873be5bb6492e2df8f74d923fe3eaaf1e2ad8 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 29 Aug 2024 14:40:02 +0200 Subject: [PATCH] compatibility for keycloak 25 --- pom.xml | 4 ++-- .../social/trackmania/TrackmaniaIdentityProvider.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 012ce6b..3774384 100644 --- a/pom.xml +++ b/pom.xml @@ -8,11 +8,11 @@ org.keycloak.extensions keycloak-trackmania jar - 1.0.1-SNAPSHOT + 1.0.2-SNAPSHOT UTF-8 - 22.0.4 + 25.0.4 diff --git a/src/main/java/org/keycloak/social/trackmania/TrackmaniaIdentityProvider.java b/src/main/java/org/keycloak/social/trackmania/TrackmaniaIdentityProvider.java index 8196a40..5d9cedf 100644 --- a/src/main/java/org/keycloak/social/trackmania/TrackmaniaIdentityProvider.java +++ b/src/main/java/org/keycloak/social/trackmania/TrackmaniaIdentityProvider.java @@ -27,10 +27,9 @@ public TrackmaniaIdentityProvider(KeycloakSession session, TrackmaniaIdentityPro @Override protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode profile) { - BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "account_id")); + BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "account_id"), getConfig()); user.setUsername(getJsonProperty(profile, "display_name")); - user.setIdpConfig(getConfig()); user.setIdp(this); AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, profile, getConfig().getAlias());