Show / Hide Table of Contents

Class BearerToken.QueryParameterAccessMethod

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
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
[Obsolete("https://developers.google.com/identity/protocols/oauth2/index.html#4.-send-the-access-token-to-an-api.")]
public class BearerToken.QueryParameterAccessMethod : IAccessMethod

Methods

GetAccessToken(HttpRequestMessage)

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

Declaration
public 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
public void Intercept(HttpRequestMessage request, string accessToken)
Parameters
Type Name Description
HttpRequestMessage request
string accessToken

Implements

IAccessMethod
In this article
Back to top Generated by DocFX