Click or drag to resize

DropboxOAuth2HelperProcessCodeFlowAsync Method (Uri, 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(
	Uri responseUri,
	string appKey,
	string appSecret,
	string redirectUri = null,
	string state = null,
	HttpClient client = null,
	string codeVerifier = null


Type: SystemUri
The URI to which the user was redirected after the initial authorization request.
Type: SystemString
The application key, found in the App Console.
Type: SystemString
The application secret, found in the App Console.
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.
state (Optional)
Type: SystemString
The state parameter (if any) that matches that used in the initial authorize URI.
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