Class OpenIdPasswordTokenRequestContext

java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<Map<String,String>,OpenIdTokenResponse>
io.micronaut.security.oauth2.endpoint.token.request.context.OpenIdPasswordTokenRequestContext
All Implemented Interfaces:
TokenRequestContext<Map<String,String>,OpenIdTokenResponse>

public class OpenIdPasswordTokenRequestContext extends AbstractTokenRequestContext<Map<String,String>,OpenIdTokenResponse>
A token request context for sending a password grant request to an OpenID provider.
Since:
1.2.0
Author:
James Kleeh
  • Constructor Details

    • OpenIdPasswordTokenRequestContext

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

    • getGrant

      public Map<String,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