Class OauthCodeTokenRequestContext
java.lang.Object
io.micronaut.security.oauth2.endpoint.token.request.context.AbstractTokenRequestContext<Map<String,String>,TokenResponse>
  
io.micronaut.security.oauth2.endpoint.token.request.context.OauthCodeTokenRequestContext
- All Implemented Interfaces:
 TokenRequestContext<Map<String,String>, TokenResponse> 
public class OauthCodeTokenRequestContext
extends AbstractTokenRequestContext<Map<String,String>,TokenResponse>  
A token request context for sending an authorization
 code 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
ConstructorsConstructorDescriptionOauthCodeTokenRequestContext(AuthorizationResponse authorizationResponse, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration, String codeVerifier)  - 
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
- 
OauthCodeTokenRequestContext
public OauthCodeTokenRequestContext(AuthorizationResponse authorizationResponse, SecureEndpoint tokenEndpoint, OauthClientConfiguration clientConfiguration, @Nullable String codeVerifier) - Parameters:
 authorizationResponse- The authorization responsetokenEndpoint- The token endpointclientConfiguration- The client configurationcodeVerifier- The PKCE code_verifier
 
 - 
 - 
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
 
 - 
getCodeVerifier
- Returns:
 - The PKCE code verifier
 - Since:
 - 3.9.0
 
 
 -