Interface IAccessMethod (1.60.0)

public interface IAccessMethod

Method of presenting the access token to the resource server as specified in http://tools.ietf.org/html/rfc6749#section-7

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetAccessToken(HttpRequestMessage)

string GetAccessToken(HttpRequestMessage request)

Retrieves the original access token in the HTTP request, as provided in the Intercept(HttpRequestMessage, string) method.

Parameter
NameDescription
requestHttpRequestMessage
Returns
TypeDescription
string

Intercept(HttpRequestMessage, string)

void Intercept(HttpRequestMessage request, string accessToken)

Intercepts a HTTP request right before the HTTP request executes by providing the access token.

Parameters
NameDescription
requestHttpRequestMessage
accessTokenstring

Extension Method