You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| OutputClaim | The name of the localized string | string | List of claim types that is produced after this claims transformation has been invoked. |
368
+
369
+
To use the GetLocalizedStringsTransformation claims transformation:
370
+
371
+
1. Define a [localization string](localization.md) and associate it with a [self-asserted-technical-profile](self-asserted-technical-profile.md).
372
+
1. The `ElementType` of the `LocalizedString` element must set to `GetLocalizedStringsTransformationClaimType`.
373
+
1. The `StringId` is a unique identifier that you define, and use it later in your claims transformation.
374
+
1. In the claims transformation specify the list of claims to be set with the localized string. The `ClaimTypeReferenceId` is a reference to a ClaimType already defined in the ClaimsSchema section in the policy. The `TransformationClaimType` is the name of the localized string as defined in the `StringId` of the `LocalizedString` element.
375
+
1. In a [self-asserted technical profile](self-asserted-technical-profile.md), or a [display control](display-controls.md) input or output claims transformation, make a reference to your claims transformation.
376
+
377
+
The following example looks up the email subject, body, your code message, and the signature of the email, from localized strings. These claims later used by custom email verification template.
378
+
379
+
Define localized strings for English (default) and Spanish.
<LocalizedStringElementType="GetLocalizedStringsTransformationClaimType"StringId="email_subject">Código de verificación del correo electrónico de la cuenta de Contoso</LocalizedString>
399
+
<LocalizedStringElementType="GetLocalizedStringsTransformationClaimType"StringId="email_message">Gracias por comprobar la cuenta de </LocalizedString>
0 commit comments