Package io.quarkus.oidc
Class OidcTenantConfig.Roles
- java.lang.Object
-
- io.quarkus.oidc.OidcTenantConfig.Roles
-
- Enclosing class:
- OidcTenantConfig
public static class OidcTenantConfig.Roles extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OidcTenantConfig.Roles.Source
-
Field Summary
Fields Modifier and Type Field Description Optional<List<String>>
roleClaimPath
List of paths to claims containing an array of groups.Optional<String>
roleClaimSeparator
Separator for splitting a string which may contain multiple group values.Optional<OidcTenantConfig.Roles.Source>
source
Source of the principal roles.
-
Constructor Summary
Constructors Constructor Description Roles()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OidcTenantConfig.Roles
fromClaimPath(List<String> path)
static OidcTenantConfig.Roles
fromClaimPathAndSeparator(List<String> path, String sep)
Optional<List<String>>
getRoleClaimPath()
Optional<String>
getRoleClaimSeparator()
Optional<OidcTenantConfig.Roles.Source>
getSource()
void
setRoleClaimPath(List<String> roleClaimPath)
void
setRoleClaimSeparator(String roleClaimSeparator)
void
setSource(OidcTenantConfig.Roles.Source source)
-
-
-
Field Detail
-
roleClaimPath
@ConfigItem public Optional<List<String>> roleClaimPath
List of paths to claims containing an array of groups. Each path starts from the top level JWT JSON object and can contain multiple segments where each segment represents a JSON object name only, example: "realm/groups". Use double quotes with the namespace qualified claim names. This property can be used if a token has no 'groups' claim but has the groups set in one or more different claims.
-
roleClaimSeparator
@ConfigItem public Optional<String> roleClaimSeparator
Separator for splitting a string which may contain multiple group values. It will only be used if the "role-claim-path" property points to one or more custom claims whose values are strings. A single space will be used by default because the standard 'scope' claim may contain a space separated sequence.
-
source
@ConfigItem public Optional<OidcTenantConfig.Roles.Source> source
Source of the principal roles.
-
-
Method Detail
-
fromClaimPath
public static OidcTenantConfig.Roles fromClaimPath(List<String> path)
-
fromClaimPathAndSeparator
public static OidcTenantConfig.Roles fromClaimPathAndSeparator(List<String> path, String sep)
-
setRoleClaimSeparator
public void setRoleClaimSeparator(String roleClaimSeparator)
-
getSource
public Optional<OidcTenantConfig.Roles.Source> getSource()
-
setSource
public void setSource(OidcTenantConfig.Roles.Source source)
-
-