← Back to plugin index

Formatted LocalDate Context Data Custom Claim

Description
A custom claim containing a LocalDate (a date without any time information from the context data of the user) value formatted as string.
Type name
CustomContextDataLocalDateAsStringClaim
Class
com.airlock.iam.oauth2.application.configuration.claims.CustomContextDataLocalDateAsStringClaimConfig
May be used by
License-Tags
OAuthServer
Properties
Context Data (contextDataName)
Description
The name of the date (without 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.
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
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: CustomContextDataLocalDateAsStringClaim
id: CustomContextDataLocalDateAsStringClaim-xxxxxx
displayName: 
comment: 
properties:
  claimCondition:
  claimName:
  contextDataName:
  pattern: yyyy-MM-dd