Click or drag to resize

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

Processes the second half of the OAuth 2.0 code flow.

Namespace:  Dropbox.Api
Assembly:  Dropbox.Api (in Dropbox.Api.dll) Version: 4.0
Syntax
public static Task<OAuth2Response> ProcessCodeFlowAsync(
	Uri responseUri,
	string appKey,
	string appSecret,
	string redirectUri = null,
	string state = null,
	HttpClient client = null
)

Parameters

responseUri
Type: SystemUri
The URI to which the user was redirected after the initial authorization request.
appKey
Type: SystemString
The application key, found in the App Console.
appSecret
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.

Return Value

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