Class OpenIdPasswordTokenRequestContext

    • Constructor Detail

      • OpenIdPasswordTokenRequestContext

        public OpenIdPasswordTokenRequestContext​(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
      • getMediaType

        protected static io.micronaut.http.MediaType getMediaType​(OauthClientConfiguration clientConfiguration)
        Resolves the media type for the request body
        Parameters:
        clientConfiguration - The client configuration
        Returns:
        The media type
      • getResponseType

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

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