Class Tenant
- java.lang.Object
-
- io.helidon.security.providers.oidc.common.Tenant
-
public class Tenant extends Object
Holder of the tenant configuration resolved at runtime. Used for OIDC lazy loading.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebClient
appWebClient()
Client with configured proxy and security.String
authorizationEndpointUri()
Authorization endpoint.static Tenant
create(OidcConfig oidcConfig, TenantConfig tenantConfig)
Create new instance and resolve all the metadata related values.URI
introspectUri()
Introspection endpoint URI.String
issuer()
Token issuer.URI
logoutEndpointUri()
Logout endpoint on OIDC server.JwkKeys
signJwk()
JWK used for signature validation.TenantConfig
tenantConfig()
Provided tenant configuration.URI
tokenEndpointUri()
Token endpoint URI.
-
-
-
Method Detail
-
create
public static Tenant create(OidcConfig oidcConfig, TenantConfig tenantConfig)
Create new instance and resolve all the metadata related values.- Parameters:
oidcConfig
- overall OIDC configtenantConfig
- tenant config- Returns:
- new instance with resolved OIDC metadata
-
tenantConfig
public TenantConfig tenantConfig()
Provided tenant configuration.- Returns:
- tenant configuration
-
tokenEndpointUri
public URI tokenEndpointUri()
Token endpoint URI.- Returns:
- endpoint URI
-
authorizationEndpointUri
public String authorizationEndpointUri()
Authorization endpoint.- Returns:
- authorization endpoint uri as a string
-
logoutEndpointUri
public URI logoutEndpointUri()
Logout endpoint on OIDC server.- Returns:
- URI of the logout endpoint
-
issuer
public String issuer()
Token issuer.- Returns:
- token issuer
-
appWebClient
public WebClient appWebClient()
Client with configured proxy and security.- Returns:
- client for communicating with OIDC identity server
-
signJwk
public JwkKeys signJwk()
JWK used for signature validation.- Returns:
- set of keys used to verify tokens
-
introspectUri
public URI introspectUri()
Introspection endpoint URI.- Returns:
- introspection endpoint URI
-
-