 | 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
Syntaxpublic static Task<OAuth2Response> ProcessCodeFlowAsync(
Uri responseUri,
string appKey,
string appSecret,
string redirectUri = null,
string state = null,
HttpClient client = null
)
Public Shared Function ProcessCodeFlowAsync (
responseUri As Uri,
appKey As String,
appSecret As String,
Optional redirectUri As String = Nothing,
Optional state As String = Nothing,
Optional client As HttpClient = Nothing
) As Task(Of OAuth2Response)
public:
static Task<OAuth2Response^>^ ProcessCodeFlowAsync(
Uri^ responseUri,
String^ appKey,
String^ appSecret,
String^ redirectUri = nullptr,
String^ state = nullptr,
HttpClient^ client = nullptr
)
static member ProcessCodeFlowAsync :
responseUri : Uri *
appKey : string *
appSecret : string *
?redirectUri : string *
?state : string *
?client : HttpClient
(* Defaults:
let _redirectUri = defaultArg redirectUri null
let _state = defaultArg state null
let _client = defaultArg client null
*)
-> Task<OAuth2Response>
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:
TaskOAuth2ResponseThe authorization response, containing the access token and uid of the authorized user
See Also