← Back to plugin index

User Condition

Description
Condition that matches the username and the role with configurable patterns. All patterns have to match for the {@link UserCondition} as a whole to be true (logical AND).
Type name
UserCondition
Class
com.airlock.iam.core.misc.impl.sso.UserCondition
May be used by
Properties
Username Pattern (usernamePattern)
Description
The pattern to check the propagated username with.
Attributes
RegEx
Optional
Role Pattern (rolePattern)
Description
The pattern to check the user's granted role(s) for the target application with.
Attributes
RegEx
Optional
No Roles Allowed (noRolesAllowed)
Description
If set to true, users with no roles will be allowed and the condition will be true. If set to false, users with no roles will make the condition false.
Attributes
Boolean
Optional
Default value
true
YAML Template (with default values)

type: UserCondition
id: UserCondition-xxxxxx
displayName: 
comment: 
properties:
  noRolesAllowed: true
  rolePattern:
  usernamePattern: