Interface OauthRouteUrlBuilder

All Superinterfaces:
AbsoluteUrlBuilder
All Known Implementing Classes:
DefaultOauthRouteUrlBuilder

@DefaultImplementation(DefaultOauthRouteUrlBuilder.class) public interface OauthRouteUrlBuilder extends AbsoluteUrlBuilder
Responsible for building URLs to routes the client will receive. requests on.
Since:
1.2.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from interface io.micronaut.security.oauth2.url.AbsoluteUrlBuilder

    buildUrl
  • Method Details

    • buildLoginUrl

      URL buildLoginUrl(@Nullable io.micronaut.http.HttpRequest<?> originating, String providerName)
      Builds the URL to start the OAuth 2.0 authorization code flow.
      Parameters:
      originating - The originating request
      providerName - The oauth provider name
      Returns:
      The URL
    • buildCallbackUrl

      URL buildCallbackUrl(@Nullable io.micronaut.http.HttpRequest<?> originating, String providerName)
      Builds the URL to receive the OAuth 2.0 authorization callback request.
      Parameters:
      originating - The originating request
      providerName - The oauth provider name
      Returns:
      The URL
    • buildLoginUri

      URI buildLoginUri(String providerName)
      Builds the URI to start the OAuth 2.0 authorization code flow.
      Parameters:
      providerName - The oauth provider name
      Returns:
      The URL
    • buildCallbackUri

      URI buildCallbackUri(String providerName)
      Builds the URI to receive the OAuth 2.0 authorization callback request.
      Parameters:
      providerName - The oauth provider name
      Returns:
      The URL