Show / Hide Table of Contents

Interface IAccessMethod

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

Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public interface IAccessMethod

Methods

GetAccessToken(HttpRequestMessage)

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

Declaration
string GetAccessToken(HttpRequestMessage request)
Parameters
Type Name Description
HttpRequestMessage request
Returns
Type Description
string

Intercept(HttpRequestMessage, string)

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

Declaration
void Intercept(HttpRequestMessage request, string accessToken)
Parameters
Type Name Description
HttpRequestMessage request
string accessToken
In This Article
Back to top Generated by DocFX