Package com.adobe.granite.auth.oauth
Interface AccessTokenRequestCustomizer
An interface to customize the token exchange/trade mechanism for JWT Bearer based request
for requesting an OAuth 2.0 access token. Implementers of this interface should use this to
customize the parameters to be sent in the request for exchanging the JWT for access token if
the api they use specifies non-standard parameters as opposed to the ones specified in
RFC 7523.
- Since:
- 3.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecifies the property name of this customizer type -
Method Summary
Modifier and TypeMethodDescriptiongetRequestHeaders(Map<String, Object> requestContext) Customizes the request headers for trading JWT for an access tokengetRequestParameters(Map<String, Object> requestContext) Customizes the request parameters for trading JWT for an access token
-
Field Details
-
CUSTOMIZER_TYPE_PROPERTY
Specifies the property name of this customizer type- See Also:
-
-
Method Details
-
getRequestParameters
Customizes the request parameters for trading JWT for an access token- Parameters:
requestContext- The request context contains values ornullfor context keys referenced inAccessTokenProviderConstants- Returns:
- The customized parameters for requesting access token in exchange for a JWT. If there is no customization done, the passed request parameters are returned without any changes.
- See Also:
-
getRequestHeaders
Customizes the request headers for trading JWT for an access token- Parameters:
requestContext- The request context contains values ornullfor context keys referenced inAccessTokenProviderConstants- Returns:
- The customized headers for requesting access token in exchange for a JWT. If there is no customization done, the passed headers are returned without any changes.
- See Also:
-