Formatted Date And Time Context Data Custom Claim
Description
A custom claim containing a Date and Time value (from the context data of the user) formatted as string.
May be used by
Properties
Context Data (
contextDataName) Description
The name of the date and time context data element to be returned in this claim.
Attributes
Plugin-Link
Mandatory
Assignable plugins
Pattern (
pattern) Description
The pattern to format the date value with.
Attributes
String
Optional
Default value
yyyy-MM-dd
Suggested values
yyyy-MM-dd, dd.MM.yyyy, MM/dd/yyyy, dd-MMM-yyyy HH:mm:ss, yyyy-MM-dd HH:mm:ss
Timezone (
timezone) Description
The timezone that should be used when formatting the date value. If nothing is configured the timezone of the server is taken.
Attributes
String
Optional
Suggested values
Europe/Zurich, US/Pacific, CET, GMT, UTC
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: CustomContextDataDateAsStringClaim
id: CustomContextDataDateAsStringClaim-xxxxxx
displayName:
comment:
properties:
claimCondition:
claimName:
contextDataName:
pattern: yyyy-MM-dd
timezone: