Interface AuthorizationServerContext


public interface AuthorizationServerContext
A context that holds information of the Authorization Server runtime environment.
Since:
0.2.2
See Also:
  • Method Details

    • getIssuer

      String getIssuer()
      Returns AuthorizationServerSettings.getIssuer() if available, otherwise, resolves the issuer identifier from the "current" request.

      The issuer identifier may contain a path component to support multiple issuers per host in a multi-tenant hosting configuration.

      For example:

      • https://example.com/issuer1/oauth2/token — resolves the issuer to https://example.com/issuer1
      • https://example.com/issuer2/oauth2/token — resolves the issuer to https://example.com/issuer2
      • https://example.com/authz/issuer1/oauth2/token — resolves the issuer to https://example.com/authz/issuer1
      • https://example.com/authz/issuer2/oauth2/token — resolves the issuer to https://example.com/authz/issuer2
      Returns:
      AuthorizationServerSettings.getIssuer() if available, otherwise, resolves the issuer identifier from the "current" request
    • getAuthorizationServerSettings

      AuthorizationServerSettings getAuthorizationServerSettings()
      Returns:
      the AuthorizationServerSettings