C# Класс RestSharp.Authenticators.OAuth.OAuthWorkflow

A class to encapsulate OAuth authentication flow. http://oauth.net/core/1.0#anchor9
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BuildAccessTokenInfo ( string method ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.

BuildAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.

BuildClientAuthAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging user credentials for an access token authorized by the user at the Service Provider site.

BuildProtectedResourceInfo ( string method, WebParameterCollection parameters, string url ) : OAuthWebQueryInfo
BuildRequestTokenInfo ( string method ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.

BuildRequestTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.

Приватные методы

Метод Описание
AddAuthParameters ( ICollection parameters, string timestamp, string nonce ) : void
AddXAuthParameters ( ICollection parameters, string timestamp, string nonce ) : void
ValidateAccessRequestState ( ) : void
ValidateClientAuthAccessRequestState ( ) : void
ValidateProtectedResourceState ( ) : void
ValidateTokenRequestState ( ) : void

Описание методов

BuildAccessTokenInfo() публичный Метод

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.
public BuildAccessTokenInfo ( string method ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
Результат OAuthWebQueryInfo

BuildAccessTokenInfo() публичный Метод

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging a request token for an access token authorized by the user at the Service Provider site.
public BuildAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
Результат OAuthWebQueryInfo

BuildClientAuthAccessTokenInfo() публичный Метод

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of exchanging user credentials for an access token authorized by the user at the Service Provider site.
public BuildClientAuthAccessTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
Результат OAuthWebQueryInfo

BuildProtectedResourceInfo() публичный Метод

public BuildProtectedResourceInfo ( string method, WebParameterCollection parameters, string url ) : OAuthWebQueryInfo
method string
parameters WebParameterCollection
url string
Результат OAuthWebQueryInfo

BuildRequestTokenInfo() публичный Метод

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.
public BuildRequestTokenInfo ( string method ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
Результат OAuthWebQueryInfo

BuildRequestTokenInfo() публичный Метод

Generates a OAuthWebQueryInfo instance to pass to an IAuthenticator for the purpose of requesting an unauthorized request token.
public BuildRequestTokenInfo ( string method, WebParameterCollection parameters ) : OAuthWebQueryInfo
method string The HTTP method for the intended request
parameters WebParameterCollection Any existing, non-OAuth query parameters desired in the request
Результат OAuthWebQueryInfo