Class OauthPasswordTokenRequestContext
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<Map<String,String>,TokenResponse>
io.micronaut.security.oauth2.endpoint.token.request.context.OauthPasswordTokenRequestContext
- All Implemented Interfaces:
TokenRequestContext<Map<String,
String>, TokenResponse>
public class OauthPasswordTokenRequestContext
extends AbstractTokenRequestContext<Map<String,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
-
Field Summary
Fields inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
clientConfiguration, mediaType, tokenEndpoint
-
Constructor Summary
ConstructorDescriptionOauthPasswordTokenRequestContext
(AuthenticationRequest authenticationRequest, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.type.Argument<?>
getGrant()
io.micronaut.core.type.Argument<TokenResponse>
Methods inherited from class io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext
getClientConfiguration, getEndpoint, getMediaType
-
Constructor Details
-
OauthPasswordTokenRequestContext
public OauthPasswordTokenRequestContext(AuthenticationRequest authenticationRequest, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration) - Parameters:
authenticationRequest
- The authentication requesttokenEndpoint
- The token endpointclientConfiguration
- The client configuration
-
-
Method Details
-
getGrant
- Returns:
- The grant or body of the request
-
getResponseType
- Returns:
- The response argument
-
getErrorResponseType
public io.micronaut.core.type.Argument<?> getErrorResponseType()- Returns:
- The error response argument
-