public static class OpenIdConnectTokenAuthenticationConfig.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
OpenIdConnectTokenAuthenticationConfig |
build() |
OpenIdConnectTokenAuthenticationConfig.Builder |
caCertificate(String caCertificate)
A Base64 encoded public RSA or ECDSA certificates used to signed your identity provider’s
web certificate.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
clientId(String clientId)
A client id that all tokens must be issued for.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
copy(OpenIdConnectTokenAuthenticationConfig model) |
OpenIdConnectTokenAuthenticationConfig.Builder |
groupsClaim(String groupsClaim)
JWT claim to use as the user’s group.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
groupsPrefix(String groupsPrefix)
Prefix prepended to group claims to prevent clashes with existing names (such as
system:groups).
|
OpenIdConnectTokenAuthenticationConfig.Builder |
isOpenIdConnectAuthEnabled(Boolean isOpenIdConnectAuthEnabled)
Whether the cluster has OIDC Auth Config enabled.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
issuerUrl(String issuerUrl)
URL of the provider that allows the API server to discover public signing keys.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
requiredClaims(List<KeyValue> requiredClaims)
A key=value pair that describes a required claim in the ID Token.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
signingAlgorithms(List<String> signingAlgorithms)
The signing algorithms accepted.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
usernameClaim(String usernameClaim)
JWT claim to use as the user name.
|
OpenIdConnectTokenAuthenticationConfig.Builder |
usernamePrefix(String usernamePrefix)
Prefix prepended to username claims to prevent clashes with existing names (such as
system:users).
|
public OpenIdConnectTokenAuthenticationConfig.Builder issuerUrl(String issuerUrl)
URL of the provider that allows the API server to discover public signing keys. Only URLs that use the https:// scheme are accepted. This is typically the provider’s discovery URL, changed to have an empty path.
issuerUrl
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder clientId(String clientId)
A client id that all tokens must be issued for.
clientId
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder usernameClaim(String usernameClaim)
JWT claim to use as the user name. By default sub, which is expected to be a unique identifier of the end user. Admins can choose other claims, such as email or name, depending on their provider. However, claims other than email will be prefixed with the issuer URL to prevent naming clashes with other plugins.
usernameClaim
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder usernamePrefix(String usernamePrefix)
Prefix prepended to username claims to prevent clashes with existing names (such as system:users). For example, the value oidc: will create usernames like oidc:jane.doe. If this flag isn’t provided and –oidc-username-claim is a value other than email the prefix defaults to ( Issuer URL )# where ( Issuer URL ) is the value of –oidc-issuer-url. The value - can be used to disable all prefixing.
usernamePrefix
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder groupsClaim(String groupsClaim)
JWT claim to use as the user’s group. If the claim is present it must be an array of strings.
groupsClaim
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder groupsPrefix(String groupsPrefix)
Prefix prepended to group claims to prevent clashes with existing names (such as system:groups).
groupsPrefix
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder requiredClaims(List<KeyValue> requiredClaims)
A key=value pair that describes a required claim in the ID Token. If set, the claim is verified to be present in the ID Token with a matching value. Repeat this flag to specify multiple claims.
requiredClaims
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder caCertificate(String caCertificate)
A Base64 encoded public RSA or ECDSA certificates used to signed your identity provider’s web certificate.
caCertificate
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder signingAlgorithms(List<String> signingAlgorithms)
The signing algorithms accepted. Default is [“RS256”].
signingAlgorithms
- the value to setpublic OpenIdConnectTokenAuthenticationConfig.Builder isOpenIdConnectAuthEnabled(Boolean isOpenIdConnectAuthEnabled)
Whether the cluster has OIDC Auth Config enabled. Defaults to false.
isOpenIdConnectAuthEnabled
- the value to setpublic OpenIdConnectTokenAuthenticationConfig build()
public OpenIdConnectTokenAuthenticationConfig.Builder copy(OpenIdConnectTokenAuthenticationConfig model)
Copyright © 2016–2024. All rights reserved.