Package io.micronaut.security.oauth2.url
Class DefaultOauthRouteUrlBuilder
java.lang.Object
io.micronaut.security.oauth2.url.DefaultOauthRouteUrlBuilder
- All Implemented Interfaces:
 AbsoluteUrlBuilder,OauthRouteUrlBuilder
Default implementation of 
OauthRouteUrlBuilder.- Since:
 - 1.2.0
 - Author:
 - James Kleeh
 
- 
Method Summary
Modifier and TypeMethodDescriptionprotected URLBuilds a URL with the provided arguments.buildCallbackUri(String providerName) Builds the URI to receive the OAuth 2.0 authorization callback request.buildCallbackUrl(io.micronaut.http.HttpRequest<?> 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(io.micronaut.http.HttpRequest<?> originating, String providerName) Builds the URL to start the OAuth 2.0 authorization code flow.Builds an absolute URL for the given path.protected StringBuilds the path portion of the URL. 
- 
Method Details
- 
buildLoginUrl
public URL buildLoginUrl(@Nullable io.micronaut.http.HttpRequest<?> originating, String providerName) Description copied from interface:OauthRouteUrlBuilderBuilds the URL to start the OAuth 2.0 authorization code flow.- Specified by:
 buildLoginUrlin interfaceOauthRouteUrlBuilder- Parameters:
 originating- The originating requestproviderName- The oauth provider name- Returns:
 - The URL
 
 - 
buildCallbackUrl
public URL buildCallbackUrl(@Nullable io.micronaut.http.HttpRequest<?> originating, String providerName) Description copied from interface:OauthRouteUrlBuilderBuilds the URL to receive the OAuth 2.0 authorization callback request.- Specified by:
 buildCallbackUrlin interfaceOauthRouteUrlBuilder- Parameters:
 originating- The originating requestproviderName- The oauth provider name- Returns:
 - The URL
 
 - 
buildLoginUri
Description copied from interface:OauthRouteUrlBuilderBuilds the URI to start the OAuth 2.0 authorization code flow.- Specified by:
 buildLoginUriin interfaceOauthRouteUrlBuilder- Parameters:
 providerName- The oauth provider name- Returns:
 - The URL
 
 - 
buildCallbackUri
Description copied from interface:OauthRouteUrlBuilderBuilds the URI to receive the OAuth 2.0 authorization callback request.- Specified by:
 buildCallbackUriin interfaceOauthRouteUrlBuilder- Parameters:
 providerName- The oauth provider name- Returns:
 - The URL
 
 - 
build
protected URL build(@Nullable io.micronaut.http.HttpRequest<?> originating, String providerName, String uriTemplate) Builds a URL with the provided arguments.- Parameters:
 originating- The originating requestproviderName- The oauth provider nameuriTemplate- The URI template- Returns:
 - The URL
 
 - 
getPath
Builds the path portion of the URL.- Parameters:
 uriTemplate- The uri templateproviderName- The provider name- Returns:
 - The URL path
 
 - 
buildUrl
Description copied from interface:AbsoluteUrlBuilderBuilds an absolute URL for the given path.- Specified by:
 buildUrlin interfaceAbsoluteUrlBuilder- Parameters:
 current- The current requestpath- The path- Returns:
 - The absolute URL
 
 
 -