

# OAuth2Credentials
<a name="API_OAuth2Credentials"></a>

The OAuth 2.0 credentials required for OAuth 2.0 authentication.

## Contents
<a name="API_OAuth2Credentials_Contents"></a>

 ** accessToken **   <a name="appflow-Type-OAuth2Credentials-accessToken"></a>
The access token used to access the connector on your behalf.  
Type: String  
Length Constraints: Maximum length of 4096.  
Pattern: `\S+`   
Required: No

 ** clientId **   <a name="appflow-Type-OAuth2Credentials-clientId"></a>
The identifier for the desired client.  
Type: String  
Length Constraints: Maximum length of 512.  
Pattern: `\S+`   
Required: No

 ** clientSecret **   <a name="appflow-Type-OAuth2Credentials-clientSecret"></a>
The client secret used by the OAuth client to authenticate to the authorization server.  
Type: String  
Length Constraints: Maximum length of 512.  
Pattern: `\S+`   
Required: No

 ** oAuthRequest **   <a name="appflow-Type-OAuth2Credentials-oAuthRequest"></a>
 Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.   
Type: [ConnectorOAuthRequest](API_ConnectorOAuthRequest.md) object  
Required: No

 ** refreshToken **   <a name="appflow-Type-OAuth2Credentials-refreshToken"></a>
The refresh token used to refresh an expired access token.  
Type: String  
Length Constraints: Maximum length of 4096.  
Pattern: `\S+`   
Required: No

## See Also
<a name="API_OAuth2Credentials_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/appflow-2020-08-23/OAuth2Credentials) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appflow-2020-08-23/OAuth2Credentials) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appflow-2020-08-23/OAuth2Credentials) 