Skip to content

Commit

Permalink
Update to 25.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onotoliy committed Aug 1, 2024
1 parent c4df50c commit 0675505
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<version.checkstyle.plugin>3.0.0</version.checkstyle.plugin>
<version.surefire.plugin>2.22.0</version.surefire.plugin>

<version.keycloak>24.0.1</version.keycloak>
<version.keycloak>25.0.2</version.keycloak>
</properties>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public Response authResponse(
}
}

federatedIdentity.setIdpConfig(providerConfig);
federatedIdentity.setIdp(provider);
federatedIdentity.setAuthenticationSession(authSession);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
logger.infof("ExtractIdentityFromProfile. Context %s", context);

BrokeredIdentityContext user = new BrokeredIdentityContext(
Objects.requireNonNull(JsonUtils.asText(context, "id"))
Objects.requireNonNull(JsonUtils.asText(context, "id")),
getConfig()
);

user.setUsername(JsonUtils.asText(context, "screen_name"));
user.setFirstName(JsonUtils.asText(context, "first_name"));
user.setLastName(JsonUtils.asText(context, "last_name"));

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

AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, context, getConfig().getAlias());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected SimpleHttp buildUserInfoRequest(String subjectToken, String userInfoUr
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode profile) {
logger.info("profile: " + profile.toString());

BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "email"));
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "email"), getConfig());

String email = getJsonProperty(profile, "email");

Expand All @@ -107,7 +107,6 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
user.setFirstName(getJsonProperty(profile, "first_name"));
user.setLastName(getJsonProperty(profile, "last_name"));

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

AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, profile, getConfig().getAlias());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected SimpleHttp buildUserInfoRequest(String subjectToken, String userInfoUr
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode profile) {
logger.info("profile: " + profile.toString());

BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "uid"));
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "uid"), getConfig());

String email = getJsonProperty(profile, "email");
if (getConfig().isEmailRequired() && StringUtils.isNullOrEmpty(email)) {
Expand All @@ -103,7 +103,6 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
user.setFirstName(getJsonProperty(profile, "first_name"));
user.setLastName(getJsonProperty(profile, "last_name"));

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

AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, profile, getConfig().getAlias());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected SimpleHttp buildUserInfoRequest(String subjectToken, String userInfoUr

@Override
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode node) {
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(node, "id"));
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(node, "id"), getConfig());

String email = getJsonProperty(node, "default_email");
if (StringUtils.isNullOrEmpty(email)) {
Expand All @@ -96,7 +96,6 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
user.setLastName(getJsonProperty(node, "last_name"));
user.setFirstName(getJsonProperty(node, "first_name"));

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

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

0 comments on commit 0675505

Please sign in to comment.