Property | Type | Description | |
---|---|---|---|
OAuth2AccessCode | string | ||
OAuth2AccessToken | string | ||
OAuth2AccessType | string | ||
OAuth2ApprovalPrompt | string | ||
OAuth2ClientId | string | ||
OAuth2ClientSecret | string | ||
OAuth2ExpiresIn | string | ||
OAuth2GrantType | string | ||
OAuth2RedirectUri | string | ||
OAuth2RefreshToken | string | ||
OAuth2ResponseType | string | ||
OAuth2State | string | ||
OAuth2TokenType | string | ||
OAuthCallbackKey | string | ||
OAuthConsumerKeyKey | string | ||
OAuthConsumerSecretKey | string | ||
OAuthNonceKey | string | ||
OAuthParameterPrefix | string | ||
OAuthScopeKey | string | ||
OAuthSignatureKey | string | ||
OAuthSignatureMethodKey | string | ||
OAuthTimestampKey | string | ||
OAuthTokenKey | string | ||
OAuthTokenSecretKey | string | ||
OAuthVerifierKey | string | ||
OAuthVersion | string | ||
OAuthVersionKey | string |
Property | Type | Description | |
---|---|---|---|
unreservedChars | string |
Method | Description | |
---|---|---|
EncodingPerRFC3986 ( string value ) : string |
All parameter names and values are escaped using the [RFC3986] percent-encoding (%xx) mechanism. Characters not in the unreserved character MUST be encoded. Characters in the unreserved character set MUST NOT be encoded. Hexadecimal characters in encodings MUST be upper case. Text names and values MUST be encoded as UTF-8 octets before percent-encoding them per [RFC3629]
|
|
GenerateNonce ( ) : string |
Generate a nonce
|
|
GenerateOAuthSignature ( string consumerSecret, string tokenSecret ) : string |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a ‘&’ character (ASCII code 38), even if either secret is empty. The result MUST be encoded again.
|
|
GenerateOAuthSignatureEncoded ( string consumerSecret, string tokenSecret ) : string |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a ‘&’ character (ASCII code 38), even if either secret is empty. This version calls GenerateOAuthSignature and encodes the whole signature again The result MUST be encoded again.
|
|
GenerateSignature ( |
Generates a signature using the specified signatureMethod
|
|
GenerateSignature ( |
Generates a signature using the HMAC-SHA1 algorithm
|
|
GenerateSignature ( |
Generates a signature using the specified signatureMethod
|
|
GenerateSignatureBase ( |
Generate the signature base that is used to produce the signature
|
|
GenerateSignatureBase ( |
Generate the signature base that is used to produce the signature
|
|
GenerateSignatureUsingHash ( string signatureBase, |
Generate the signature value based on the given signature base and hash algorithm
|
|
GenerateTimeStamp ( ) : string |
Generate the timestamp for the signature
|
|
GetExchangeAccessCodeRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String |
Generate the request body for exchanging an access code for an access token.
|
|
GetOAuth2AccessToken ( Google.GData.Client.OAuth2Parameters parameters, String requestBody ) : void |
Send the request body to the OAuth 2.0 token endpoint to retrieve an access token. When successful, updates the OAuthParameter instance passed as parameter by setting AccessToken, RefreshToken and TokenExpiry.
|
|
GetQueryParameters ( string querystring ) : string>.SortedDictionary |
Overloaded version of GetQueryParameters to work without a IDictionary parameter
|
|
GetQueryParameters ( string querystring, string>.IDictionary |
Internal function to parse query string parameters and merge them with an existing dictionary
|
|
GetRefreshAccessTokenRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String |
Generate the request body for refreshing an access token.
|
Method | Description | |
---|---|---|
NormalizeRequestParameters ( string>.SortedDictionary |
Normalizes the request parameters according to the spec for the signature generation.
|
Method | Description | |
---|---|---|
ComputeHash ( |
Helper function to compute a hash value
|
public static EncodingPerRFC3986 ( string value ) : string | ||
value | string | The value to Url encode |
return | string |
public static GenerateOAuthSignature ( string consumerSecret, string tokenSecret ) : string | ||
consumerSecret | string | |
tokenSecret | string | |
return | string |
public static GenerateOAuthSignatureEncoded ( string consumerSecret, string tokenSecret ) : string | ||
consumerSecret | string | |
tokenSecret | string | |
return | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
parameters | Google.GData.Client.OAuthParameters | The OAuth parameters |
return | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
return | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
signatureMethod | string | The type of signature to use |
return | string |
public static GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
parameters | Google.GData.Client.OAuthParameters | The OAuth parameters |
return | string |
public static GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
signatureType | string | The signature type. |
return | string |
public static GenerateSignatureUsingHash ( string signatureBase, |
||
signatureBase | string | The signature based as produced by the GenerateSignatureBase method or by any other means |
hash | The hash algorithm used to perform the hashing. If the hashing algorithm requires initialization or a key it should be set prior to calling this method | |
return | string |
public static GetExchangeAccessCodeRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
return | String |
public static GetOAuth2AccessToken ( Google.GData.Client.OAuth2Parameters parameters, String requestBody ) : void | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
requestBody | String | The request body to send |
return | void |
public static GetQueryParameters ( string querystring ) : string>.SortedDictionary |
||
querystring | string | The query string part of the Url |
return | string>.SortedDictionary |
public static GetQueryParameters ( string querystring, string>.IDictionary |
||
querystring | string | The query string part of the Url |
dict | string>.IDictionary | The dictionary to be merged with the query string parameters |
return | string>.SortedDictionary |
public static GetRefreshAccessTokenRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
return | String |
protected static NormalizeRequestParameters ( string>.SortedDictionary |
||
parameters | string>.SortedDictionary | The sorted dictionary containing parameters |
return | string |
public static string OAuth2ApprovalPrompt | ||
return | string |
public static string OAuth2ClientSecret | ||
return | string |
public static string OAuth2RefreshToken | ||
return | string |
public static string OAuth2ResponseType | ||
return | string |
public static string OAuthConsumerKeyKey | ||
return | string |
public static string OAuthConsumerSecretKey | ||
return | string |
public static string OAuthParameterPrefix | ||
return | string |
public static string OAuthSignatureMethodKey | ||
return | string |
public static string OAuthTokenSecretKey | ||
return | string |