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 Details

    • create

      public static Tenant create(OidcConfig oidcConfig, TenantConfig tenantConfig)
      Create new instance and resolve all the metadata related values.
      Parameters:
      oidcConfig - overall OIDC config
      tenantConfig - 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. When token endpoint authentication is OidcConfig.ClientAuthentication.CLIENT_SECRET_BASIC, client credentials are scoped to POST requests on the token endpoint scheme, host, port, path, and query and, when JWT introspection is used, to POST requests on the introspection endpoint scheme, host, port, path, and query.
      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