Class OauthPasswordTokenRequestContext

  • All Implemented Interfaces:
    TokenRequestContext<java.util.Map<java.lang.String,​java.lang.String>,​TokenResponse>

    public class OauthPasswordTokenRequestContext
    extends AbstractTokenRequestContext<java.util.Map<java.lang.String,​java.lang.String>,​TokenResponse>
    A token request context for sending a password grant request to an OAuth 2.0 provider.
    Since:
    1.2.0
    Author:
    James Kleeh
    • Constructor Detail

      • OauthPasswordTokenRequestContext

        public OauthPasswordTokenRequestContext​(AuthenticationRequest authenticationRequest,
                                                SecureEndpoint tokenEndpoint,
                                                OauthClientConfiguration clientConfiguration)
        Parameters:
        authenticationRequest - The authentication request
        tokenEndpoint - The token endpoint
        clientConfiguration - The client configuration
    • Method Detail

      • getGrant

        public java.util.Map<java.lang.String,​java.lang.String> getGrant()
        Returns:
        The grant or body of the request
      • getResponseType

        public io.micronaut.core.type.Argument<TokenResponse> getResponseType()
        Returns:
        The response argument
      • getErrorResponseType

        public io.micronaut.core.type.Argument<?> getErrorResponseType()
        Returns:
        The error response argument