← Back to plugin index

String Format Custom Claim

Description
A custom formatted string claim.
Type name
CustomStringFormatClaim
Class
com.airlock.iam.oauth2.application.configuration.claims.CustomStringFormatClaimConfig
May be used by
License-Tags
OAuthServer
Properties
Value Format (format)
Description
The value is defined using a format string consisting of one or multiple context data values. Context data field items can be referenced with ${contextDataField} and will be replaced with the value of the referenced context data field.
Attributes
String
Mandatory
Multi-line-text
Suggested values
${surname} ${givenname}, ${street} ${streetNumber}, ${zipcode} ${town}
Claim Name (claimName)
Description
The name (JSON key) of the claim.

Attention: If a custom claim with this same claim name already exists, it will result in a runtime error.

Using a registered claim name (see RFC 7519) might cause the claim to be ignored or an exception to be thrown.
Attributes
String
Mandatory
Example
firstname
Example
street
Example
zip
Example
country
Example
roles
Claim Condition (claimCondition)
Description

This custom claim will only be added to the issued token if the configured condition is satisfied.

If no condition is configured, the custom claim will always be added.

Attributes
Plugin-Link
Optional
Assignable plugins
YAML Template (with default values)

type: CustomStringFormatClaim
id: CustomStringFormatClaim-xxxxxx
displayName: 
comment: 
properties:
  claimCondition:
  claimName:
  format: