Class OpenIdPasswordTokenRequestContext
- java.lang.Object
-
- io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<java.util.Map<java.lang.String,java.lang.String>,OpenIdTokenResponse>
-
- io.micronaut.security.oauth2.endpoint.token.request.context.OpenIdPasswordTokenRequestContext
-
- All Implemented Interfaces:
TokenRequestContext<java.util.Map<java.lang.String,java.lang.String>,OpenIdTokenResponse>
public class OpenIdPasswordTokenRequestContext extends AbstractTokenRequestContext<java.util.Map<java.lang.String,java.lang.String>,OpenIdTokenResponse>
A token request context for sending a password grant request to an OpenID provider.- Since:
- 1.2.0
- Author:
- James Kleeh
-
-
Field Summary
-
Fields inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
clientConfiguration, mediaType, tokenEndpoint
-
-
Constructor Summary
Constructors Constructor Description OpenIdPasswordTokenRequestContext(AuthenticationRequest authenticationRequest, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.type.Argument<?>
getErrorResponseType()
java.util.Map<java.lang.String,java.lang.String>
getGrant()
protected static io.micronaut.http.MediaType
getMediaType(OauthClientConfiguration clientConfiguration)
Resolves the media type for the request bodyio.micronaut.core.type.Argument<OpenIdTokenResponse>
getResponseType()
-
Methods inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
getClientConfiguration, getEndpoint, getMediaType
-
-
-
-
Constructor Detail
-
OpenIdPasswordTokenRequestContext
public OpenIdPasswordTokenRequestContext(AuthenticationRequest authenticationRequest, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration)
- Parameters:
authenticationRequest
- The authentication requesttokenEndpoint
- The token endpointclientConfiguration
- 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
-
-