Skip to content

Commit

Permalink
KC v25 compat: move idpConfig to BrokeredIdentityContext constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
zacanbot committed Oct 12, 2024
1 parent 89053fc commit faaaf6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
# Maven #
#########
target

# VSCode #
##########
.vscode
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

<groupId>org.keycloak</groupId>
<artifactId>keycloak-orcid</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>

<name>${project.artifactId}</name>
<description>ORCID as Social Provider in Keycloak</description>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<keycloak.version>22.0.3</keycloak.version>
<keycloak.version>25.0.6</keycloak.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,

String id = getJsonProperty(orcidIdentifier, "path");

BrokeredIdentityContext user = new BrokeredIdentityContext(id);
BrokeredIdentityContext user = new BrokeredIdentityContext(id, getConfig());
user.setUsername(id);
JsonNode name = person.get("name");
if (name!= null && ! name.isNull()) {
Expand All @@ -65,7 +65,6 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
}
user.setEmail(email);

user.setIdpConfig(getConfig());
user.setIdp(this);

AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, node, getConfig().getAlias());
Expand Down

0 comments on commit faaaf6e

Please sign in to comment.