Skip to content

Commit

Permalink
KEYCLOAK-16380 Make IdP display name available to idp link email subj…
Browse files Browse the repository at this point in the history
…ect (keycloak#7626)

KEYCLOAK-16380 Make IdP display name available to idp link email subject
  • Loading branch information
seth-xdam authored Oct 4, 2021
1 parent 8cf35c9 commit 9094740
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,13 @@ public void sendConfirmIdentityBrokerLink(String link, long expirationInMinutes)

BrokeredIdentityContext brokerContext = (BrokeredIdentityContext) this.attributes.get(IDENTITY_PROVIDER_BROKER_CONTEXT);
String idpAlias = brokerContext.getIdpConfig().getAlias();
String idpDisplayName = brokerContext.getIdpConfig().getDisplayName();
idpAlias = ObjectUtil.capitalize(idpAlias);

if (idpDisplayName != null) {
idpAlias = ObjectUtil.capitalize(idpDisplayName);
}

attributes.put("identityProviderContext", brokerContext);
attributes.put("identityProviderAlias", idpAlias);

Expand Down

0 comments on commit 9094740

Please sign in to comment.