← Back to plugin index

Dynamic Boolean Custom Claim

Description
A custom boolean claim whose value is determined by whether the value of a String Provider matches a specific regex.
Type name
CustomDynamicBooleanClaim
Class
com.airlock.iam.oauth2.application.configuration.claims.CustomDynamicBooleanClaimConfig
May be used by
License-Tags
OAuthServer
Properties
Regex (regex)
Description
The regex used to match the String from the String Provider. A match results in a boolean value of true; otherwise, false.
Attributes
RegEx
Mandatory
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: CustomDynamicBooleanClaim
id: CustomDynamicBooleanClaim-xxxxxx
displayName: 
comment: 
properties:
  claimCondition:
  claimName:
  regex:
  stringProvider: