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 classOidcTenantConfig.Roles.Source
-
Field Summary
Fields Modifier and Type Field Description Optional<String>roleClaimPathPath to the claim containing an array of groups.Optional<String>roleClaimSeparatorSeparator for splitting a string which may contain multiple group values.Optional<OidcTenantConfig.Roles.Source>sourceSource 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.RolesfromClaimPath(String path)static OidcTenantConfig.RolesfromClaimPathAndSeparator(String path, String sep)Optional<String>getRoleClaimPath()Optional<String>getRoleClaimSeparator()Optional<OidcTenantConfig.Roles.Source>getSource()voidsetRoleClaimPath(String roleClaimPath)voidsetRoleClaimSeparator(String roleClaimSeparator)voidsetSource(OidcTenantConfig.Roles.Source source)
-
-
-
Field Detail
-
roleClaimPath
@ConfigItem public Optional<String> roleClaimPath
Path to the claim containing an array of groups. It 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 a different claim.
-
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 a custom claim whose value is a string. 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(String path)
-
fromClaimPathAndSeparator
public static OidcTenantConfig.Roles fromClaimPathAndSeparator(String path, String sep)
-
setRoleClaimPath
public void setRoleClaimPath(String roleClaimPath)
-
setRoleClaimSeparator
public void setRoleClaimSeparator(String roleClaimSeparator)
-
getSource
public Optional<OidcTenantConfig.Roles.Source> getSource()
-
setSource
public void setSource(OidcTenantConfig.Roles.Source source)
-
-