Interface AuthorizationServerContext
public interface AuthorizationServerContext
A context that holds information of the Authorization Server runtime environment.
- Since:
- 0.2.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthorizationServerSettings
.ReturnsAuthorizationServerSettings.getIssuer()
if available, otherwise, resolves the issuer identifier from the "current" request.
-
Method Details
-
getIssuer
String getIssuer()ReturnsAuthorizationServerSettings.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 tohttps://example.com/issuer1
https://example.com/issuer2/oauth2/token
— resolves the issuer tohttps://example.com/issuer2
https://example.com/authz/issuer1/oauth2/token
— resolves the issuer tohttps://example.com/authz/issuer1
https://example.com/authz/issuer2/oauth2/token
— resolves the issuer tohttps://example.com/authz/issuer2
- Returns:
AuthorizationServerSettings.getIssuer()
if available, otherwise, resolves the issuer identifier from the "current" request
-
getAuthorizationServerSettings
AuthorizationServerSettings getAuthorizationServerSettings()Returns theAuthorizationServerSettings
.- Returns:
- the
AuthorizationServerSettings
-