Class Tenant


  • public class Tenant
    extends Object
    Holder of the tenant configuration resolved at runtime. Used for OIDC lazy loading.
    • 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 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.
        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