Package io.micronaut.security.oauth2.url
Interface OauthRouteUrlBuilder<T>
- Type Parameters:
T
- Request
- All Superinterfaces:
AbsoluteUrlBuilder<T>
- All Known Implementing Classes:
DefaultOauthRouteUrlBuilder
@DefaultImplementation(DefaultOauthRouteUrlBuilder.class)
public interface OauthRouteUrlBuilder<T>
extends AbsoluteUrlBuilder<T>
Responsible for building URLs to routes the client will receive.
requests on.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionbuildCallbackUri
(String providerName) Builds the URI to receive the OAuth 2.0 authorization callback request.buildCallbackUrl
(T originating, String providerName) Builds the URL to receive the OAuth 2.0 authorization callback request.buildLoginUri
(String providerName) Builds the URI to start the OAuth 2.0 authorization code flow.buildLoginUrl
(T originating, String providerName) Builds the URL to start the OAuth 2.0 authorization code flow.Methods inherited from interface io.micronaut.security.oauth2.url.AbsoluteUrlBuilder
buildUrl
-
Method Details
-
buildLoginUrl
Builds the URL to start the OAuth 2.0 authorization code flow.- Parameters:
originating
- The originating requestproviderName
- The oauth provider name- Returns:
- The URL
-
buildCallbackUrl
Builds the URL to receive the OAuth 2.0 authorization callback request.- Parameters:
originating
- The originating requestproviderName
- The oauth provider name- Returns:
- The URL
-
buildLoginUri
Builds the URI to start the OAuth 2.0 authorization code flow.- Parameters:
providerName
- The oauth provider name- Returns:
- The URL
-
buildCallbackUri
Builds the URI to receive the OAuth 2.0 authorization callback request.- Parameters:
providerName
- The oauth provider name- Returns:
- The URL
-