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 Type
    Method
    Description
    buildCallbackUri(String providerName)
    Builds the URI to receive the OAuth 2.0 authorization callback request.
    buildCallbackUrl(@Nullable 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(@Nullable 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

      URL buildLoginUrl(@Nullable T 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 T 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