Click or drag to resize

DropboxOAuth2HelperProcessCodeFlowAsync Method (String, String, String, String, HttpClient, String)

Processes the second half of the OAuth 2.0 code flow.

Namespace:  Dropbox.Api
Assembly:  Dropbox.Api (in Dropbox.Api.dll) Version: 5.0
public static Task<OAuth2Response> ProcessCodeFlowAsync(
	string code,
	string appKey,
	string appSecret = null,
	string redirectUri = null,
	HttpClient client = null,
	string codeVerifier = null


Type: SystemString
The code acquired in the query parameters of the redirect from the initial authorize url.
Type: SystemString
The application key, found in the App Console.
appSecret (Optional)
Type: SystemString
The application secret, found in the App Console This is optional if using PKCE.
redirectUri (Optional)
Type: SystemString
The redirect URI that was provided in the initial authorize URI, this is only used to validate that it matches the original request, it is not used to redirect again.
client (Optional)
Type: System.Net.HttpHttpClient
An optional http client instance used to make requests.
codeVerifier (Optional)
Type: SystemString
The code verifier for PKCE flow. If using PKCE, please us the PKCEOauthFlow object

Return Value

Type: TaskOAuth2Response
The authorization response, containing the access token and uid of the authorized user
See Also