Class BearerToken.QueryParameterAccessMethod (1.60.0)

[Obsolete("https://developers.google.com/identity/protocols/oauth2/index.html#4.-send-the-access-token-to-an-api.")]
public class BearerToken.QueryParameterAccessMethod : IAccessMethod

Obsolete. Thread-safe OAuth 2.0 method for accessing protected resources using an access_token query parameter as specified in http://tools.ietf.org/html/rfc6750#section-2.3. This access method is being made obsolete. Please read here for more up to date information: https://developers.google.com/identity/protocols/oauth2/index.html#4.-send-the-access-token-to-an-api.. Please use BearerToken.AuthorizationHeaderAccessMethod instead.

Inheritance

object > BearerToken.QueryParameterAccessMethod

Implements

IAccessMethod

Namespace

GoogleApisAuthOAuth2

Assembly

Google.Apis.Auth.dll

Methods

GetAccessToken(HttpRequestMessage)

public 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)

public 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