C# Class Google.Auth.OAuth3Legged

Mostrar archivo Open project: Redth/Google.Auth

Public Methods

Method Description
DownloadStringAuthenticated ( string url ) : string
GetAccessToken ( string verificationCode ) : bool
GetAuthUrl ( ) : string

Authorizes an account with OAuth for the specified Google scopes and gets the URL to display to the user for further authorization. You should call GetAccessToken() next with the verification code returned after the user Grants your application access.

OAuth3Legged ( string appName, string displayName, bool mobile, string oauthConsumerKey, string oauthConsumerSecret, string oauthCallbackUrl ) : System
TryGetAccessToken ( string verificationCode, GoogleOAuthException &error ) : bool
TryGetAuthUrl ( string &authUrl, GoogleOAuthException &error ) : bool
TryValidateTokens ( string token, string tokenSecret, GoogleOAuthException &error ) : bool
ValidateTokens ( string token, string tokenSecret ) : bool

Validates the given token and tokenSecret to ensure it is still valid for the given scopes

Method Details

DownloadStringAuthenticated() public method

public DownloadStringAuthenticated ( string url ) : string
url string
return string

GetAccessToken() public method

public GetAccessToken ( string verificationCode ) : bool
verificationCode string
return bool

GetAuthUrl() public method

Authorizes an account with OAuth for the specified Google scopes and gets the URL to display to the user for further authorization. You should call GetAccessToken() next with the verification code returned after the user Grants your application access.
public GetAuthUrl ( ) : string
return string

OAuth3Legged() public method

public OAuth3Legged ( string appName, string displayName, bool mobile, string oauthConsumerKey, string oauthConsumerSecret, string oauthCallbackUrl ) : System
appName string
displayName string
mobile bool
oauthConsumerKey string
oauthConsumerSecret string
oauthCallbackUrl string
return System

TryGetAccessToken() public method

public TryGetAccessToken ( string verificationCode, GoogleOAuthException &error ) : bool
verificationCode string
error GoogleOAuthException
return bool

TryGetAuthUrl() public method

public TryGetAuthUrl ( string &authUrl, GoogleOAuthException &error ) : bool
authUrl string
error GoogleOAuthException
return bool

TryValidateTokens() public method

public TryValidateTokens ( string token, string tokenSecret, GoogleOAuthException &error ) : bool
token string
tokenSecret string
error GoogleOAuthException
return bool

ValidateTokens() public method

Validates the given token and tokenSecret to ensure it is still valid for the given scopes
public ValidateTokens ( string token, string tokenSecret ) : bool
token string Access Token returned from Authorization
tokenSecret string Access Token Secret returned from Authorization
return bool