KEYCLOAK-16380 Make IdP display name available to idp link email subject (#7626)
KEYCLOAK-16380 Make IdP display name available to idp link email subject
This commit is contained in:
parent
8cf35c9b7b
commit
90947404a5
1 changed files with 5 additions and 0 deletions
|
@ -145,8 +145,13 @@ public class FreeMarkerEmailTemplateProvider implements EmailTemplateProvider {
|
|||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue