Skip to content

Commit

Permalink
make code compatible with kck 25.X
Browse files Browse the repository at this point in the history
Signed-off-by: olivier le rigoleur <[email protected]>
  • Loading branch information
olivier-le-rigoleur committed Aug 2, 2024
1 parent dc0239f commit e1d23c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
18 changes: 16 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>fr.insee.keycloak</groupId>
<artifactId>keycloak-franceconnect</artifactId>
<version>6.2.0-SNAPSHOT</version>
<version>6.2.1-SNAPSHOT</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>France Connect Openid-Connect Provider for Keycloak</description>
Expand Down Expand Up @@ -68,7 +68,7 @@
<maven.source.plugin.version>3.3.0</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.5.0</maven.javadoc.plugin.version>

<keycloak.version>24.0.2</keycloak.version>
<keycloak.version>25.0.2</keycloak.version>

<!-- Testing Tools -->
<junit.jupiter.version>5.10.0</junit.jupiter.version>
Expand Down Expand Up @@ -158,6 +158,20 @@
</build>

<dependencies>

<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>

<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>4.0.2</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e1d23c2

Please sign in to comment.