Class TokenEndpoint
java.lang.Object
ai.wanaku.cli.main.support.security.TokenEndpoint
Utility class for constructing OAuth2 token endpoint URLs.
Provides methods for creating endpoint URLs either directly or from base URLs.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the provided URI directly as the token endpoint.static StringforDiscovery(String baseUrl) Constructs a token endpoint URL by appending the discovery OpenID Connect path to a base URL.static StringfromBaseUrl(String baseUrl) Constructs a token endpoint URL by appending the standard OpenID Connect path to a base URL.
-
Method Details
-
direct
Returns the provided URI directly as the token endpoint.- Parameters:
uri- The complete token endpoint URI.- Returns:
- The same URI.
-
fromBaseUrl
Constructs a token endpoint URL by appending the standard OpenID Connect path to a base URL.- Parameters:
baseUrl- The base URL of the authentication server.- Returns:
- The complete token endpoint URL.
-
forDiscovery
Constructs a token endpoint URL by appending the discovery OpenID Connect path to a base URL.- Parameters:
baseUrl- The base URL of the authentication server.- Returns:
- The complete token endpoint URL.
-