[Obsolete("https://developers.google.com/identity/protocols/oauth2/index.html#4.-send-the-access-token-to-an-api.")]public class 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eQueryParameterAccessMethod\u003c/code\u003e class, which is an obsolete method for accessing protected resources via an \u003ccode\u003eaccess_token\u003c/code\u003e query parameter in OAuth 2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryParameterAccessMethod\u003c/code\u003e class, found within the \u003ccode\u003eGoogle.Apis.Auth.OAuth2\u003c/code\u003e namespace, is thread-safe and implements the \u003ccode\u003eIAccessMethod\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe document strongly recommends using \u003ccode\u003eBearerToken.AuthorizationHeaderAccessMethod\u003c/code\u003e as a replacement for the now-obsolete \u003ccode\u003eQueryParameterAccessMethod\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis document provides information for multiple versions of the api, going from 1.50.0 to 1.69.0 (latest), and it also provides details about the two methods \u003ccode\u003eGetAccessToken\u003c/code\u003e and \u003ccode\u003eIntercept\u003c/code\u003e, including parameters and return values.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryParameterAccessMethod\u003c/code\u003e uses two methods, \u003ccode\u003eGetAccessToken\u003c/code\u003e to retrieve the access token in an HTTP request and \u003ccode\u003eIntercept\u003c/code\u003e to intercept a request before execution by providing the access token.\u003c/p\u003e\n"]]],[],null,[]]