Interface TenantConfig
- All Known Implementing Classes:
OidcConfig
public interface TenantConfig
Tenant configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA fluent APIBuilderto build instances ofTenantConfig. -
Method Summary
Modifier and TypeMethodDescriptionaudience()Expected token audience.Authorization endpoint.Base scopes to require from OIDC server.booleanWhether to validate audience token.clientId()Client id of this client.Client secret.Expected timeout of HTTP client operations.Used for JWE (Encrypted JWT) content encryption key decryption.Identity server URI.default CircuitBreakerCircuit breaker used while loading OIDC metadata and signing JWKs.default RetryjwkRetry()Retry used while loading OIDC metadata and signing JWKs.default TimeoutTimeout applied to each attempt to load OIDC metadata and signing JWKs.name()Name of the tenant.OIDC metadata in Helidon JSON.default Optional<ResourceConfig> Repeatable resource configuration used to load OIDC metadata.realm()Realm to use for WWW-Authenticate response (if needed).Audience URI of custom scopes.Server type.static TenantConfig.BuilderCreate newTenantConfig.Builderinstance.Introspection endpoint URI.Return provided token issuer.default booleanWhether creating the tenant requires a source that may become available later.Logout endpoint on OIDC server.JWK used for signature validation.default Optional<ResourceConfig> Repeatable resource configuration used to load signing JWK.Token endpoint URI.Type of authentication mechanism used for token endpoint.booleanWhether to use OIDC well known metadata.booleanWhether to validate JWT with JWK information (e.g.
-
Method Details
-
tenantBuilder
Create newTenantConfig.Builderinstance.- Returns:
- new builder instance
-
clientId
-
name
-
baseScopes
-
validateJwtWithJwk
boolean validateJwtWithJwk()Whether to validate JWT with JWK information (e.g. verify signatures locally).- Returns:
- if we should validate JWT with JWK
-
tenantIntrospectUri
-
tenantIssuer
-
tenantSignJwk
-
tenantSignJwkResource
Repeatable resource configuration used to load signing JWK.- Returns:
- signing JWK resource configuration, if configured
-
jwkRetry
Retry used while loading OIDC metadata and signing JWKs. Defaults to two attempts within an 11-second overall timeout. The retry wraps attempts guarded byjwkTimeout().- Returns:
- retry to use
-
jwkTimeout
Timeout applied to each attempt to load OIDC metadata and signing JWKs. Defaults to 5 seconds. The timeout must be positive and must not exceed the retry overall timeout.- Returns:
- timeout to use
-
jwkCircuitBreaker
Circuit breaker used while loading OIDC metadata and signing JWKs. By default, the circuit opens after one exhausted retry batch and permits a recovery probe after 5 seconds. The circuit breaker wraps the complete retry batch.- Returns:
- circuit breaker to use
-
tenantLoadingLazy
default boolean tenantLoadingLazy()Whether creating the tenant requires a source that may become available later.- Returns:
truewhen tenant creation should be lazy
-
tenantLogoutEndpointUri
-
tenantTokenEndpointUri
-
audience
-
checkAudience
boolean checkAudience()Whether to validate audience token.- Returns:
- audience
-
scopeAudience
-
identityUri
-
realm
-
tokenEndpointAuthentication
OidcConfig.ClientAuthentication tokenEndpointAuthentication()Type of authentication mechanism used for token endpoint.- Returns:
- client authentication type
-
clientTimeout
-
authorizationEndpoint
-
clientSecret
-
serverType
-
oidcMetadataJsonObject
JsonObject oidcMetadataJsonObject()OIDC metadata in Helidon JSON.- Returns:
- configured oidc metadata
-
oidcMetadataResource
Repeatable resource configuration used to load OIDC metadata.- Returns:
- OIDC metadata resource configuration, if configured
-
useWellKnown
boolean useWellKnown()Whether to use OIDC well known metadata.- Returns:
- configured oidc metadata
-
contentKeyDecryptionKeys
-