C# Class RestSharp.OAuth2AuthorizationRequestHeaderAuthenticator

The OAuth 2 authenticator using the authorization request header field.
Based on http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-5.1.1
Inheritance: OAuth2Authenticator
ファイルを表示 Open project: nicwise/RestSharp Class Usage Examples

Public Methods

Method Description
Authenticate ( IRestClient client, IRestRequest request ) : void
OAuth2AuthorizationRequestHeaderAuthenticator ( string accessToken ) : System

Initializes a new instance of the OAuth2AuthorizationRequestHeaderAuthenticator class.

Method Details

Authenticate() public method

public Authenticate ( IRestClient client, IRestRequest request ) : void
client IRestClient
request IRestRequest
return void

OAuth2AuthorizationRequestHeaderAuthenticator() public method

Initializes a new instance of the OAuth2AuthorizationRequestHeaderAuthenticator class.
public OAuth2AuthorizationRequestHeaderAuthenticator ( string accessToken ) : System
accessToken string /// The access token. ///
return System