Interface OauthClientConfiguration

  • All Superinterfaces:
    io.micronaut.core.util.Toggleable
    All Known Implementing Classes:
    OauthClientConfigurationProperties

    public interface OauthClientConfiguration
    extends io.micronaut.core.util.Toggleable
    OAuth 2.0 client configuration.
    Since:
    1.2.0
    Author:
    Sergio del Amo
    • Method Detail

      • getName

        @Nonnull
        java.lang.String getName()
        Returns:
        The provider name
      • getClientId

        @Nonnull
        java.lang.String getClientId()
        Returns:
        The client id
      • getClientSecret

        @Nullable
        java.lang.String getClientSecret()
        Returns:
        The client secret
      • getScopes

        @Nonnull
        java.util.List<java.lang.String> getScopes()
        Returns:
        The scopes requested
      • getGrantType

        @Nonnull
        GrantType getGrantType()
        Returns:
        The grant type
      • getToken

        java.util.Optional<SecureEndpointConfiguration> getToken()
        https://tools.ietf.org/html/rfc6749#section-4.1.3
        Returns:
        The optional token endpoint configuration
      • getAuthorization

        java.util.Optional<EndpointConfiguration> getAuthorization()
        https://tools.ietf.org/html/rfc6749#section-3.1
        Returns:
        The optional authorization endpoint configuration
      • getIntrospection

        java.util.Optional<SecureEndpointConfiguration> getIntrospection()
        https://tools.ietf.org/html/rfc7662.
        Returns:
        The introspection endpoint configuration
      • getRevocation

        java.util.Optional<SecureEndpointConfiguration> getRevocation()
        https://tools.ietf.org/html/rfc7009.
        Returns:
        The revocation endpoint configuration