Skip to content

Commit

Permalink
Merge pull request #6 from kuebelchris/master
Browse files Browse the repository at this point in the history
compatibility for keycloak 25
  • Loading branch information
AtomicLiquid authored Aug 29, 2024
2 parents 18dabef + 667873b commit 8907d78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<groupId>org.keycloak.extensions</groupId>
<artifactId>keycloak-trackmania</artifactId>
<packaging>jar</packaging>
<version>1.0.1-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<keycloak.version>22.0.4</keycloak.version>
<keycloak.version>25.0.4</keycloak.version>
</properties>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8907d78

Please sign in to comment.