Skip to content

Commit

Permalink
add userInfoUrl configuration to DruidIdentityProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
sergi committed Dec 18, 2024
1 parent 394b746 commit 35c0f59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public DruidIdentityProvider(KeycloakSession session, DruidIdentityProviderConfi
//
config.setAuthorizationUrl(AUTH_URL_TEST);
config.setTokenUrl(TOKEN_URL_TEST);
config.setUserInfoUrl(PROFILE_URL);

// check if inside the config exist openid likes scope=openid+email+name, if yes remove it
if (defaultScope.contains(SCOPE_OPENID)) {
Expand Down Expand Up @@ -98,7 +99,6 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
BrokeredIdentityContext user = new BrokeredIdentityContext(id, getConfig());

String email = getJsonProperty(profile, "email");
// non saprei
if (email == null && profile.has("userPrincipalName")) {
String username = getJsonProperty(profile, "userPrincipalName");
if (Validation.isEmailValid(username)) {
Expand Down

0 comments on commit 35c0f59

Please sign in to comment.