DropboxOAuthClient.GetAuthorizationUrl method

Version 1.0.0-beta001
.NET Framework 4.7
Namespace Skybrud.Social.Dropbox.OAuth
Assembly Skybrud.Social.Dropbox.dll

GetAuthorizationUrl(string)

Generates the authorization URL based on the DropboxOAuthClient.ClientId and DropboxOAuthClient.RedirectUri properties as well as the state parameter.

public string GetAuthorizationUrl(string state)

Parameters

state String

Up to 500 bytes of arbitrary data that will be passed back to your redirect URI. This parameter should be used to protect against cross-site request forgery (CSRF).

Returns

An authorization URL based on the specified state.

GetAuthorizationUrl(string, bool)

Generates the authorization URL based on the DropboxOAuthClient.ClientId and DropboxOAuthClient.RedirectUri properties as well as the state parameter.

public string GetAuthorizationUrl(string state, bool forceReapprove)

Parameters

state String

Up to 500 bytes of arbitrary data that will be passed back to your redirect URI. This parameter should be used to protect against cross-site request forgery (CSRF).

forceReapprove bool

Whether or not to force the user to approve the app again if they've already done so. If false (default), a user who has already approved the application may be automatically redirected to the URI specified by DropboxOAuthClient.RedirectUri>. If true, the user will not be automatically redirected and will have to approve the app again.

Returns

An authorization URL based on the specified state.