public interface ITokenAccessWithHeaders : ITokenAccess
Allows direct retrieval of access tokens to authenticate requests.
The access tokens obtained can be accompanied by extra information
that either describes the access token or is associated with it.
This information should acompany the token as headers when the token
is used to access a resource.
Gets an access token to authorize a request.
The token might be accompanied by extra information that should be sent
in the form of headers.
Implementations should handle automatic refreshes of the token
if they are supported.
The authUri might be required by some credential types
(e.g. the JWT access token) while other credential types
migth just ignore it.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document describes the `ITokenAccessWithHeaders` interface, which allows for direct retrieval of access tokens along with associated header information for request authentication."],["The primary method of this interface is `GetAccessTokenWithHeadersForRequestAsync`, which retrieves an access token and may include additional header information."],["The `GetAccessTokenWithHeadersForRequestAsync` method accepts an `authUri` parameter, indicating the URI the token will grant access to, and a `CancellationToken` for task cancellation."],["The `GetAccessTokenWithHeadersForRequestAsync` method returns an `AccessTokenWithHeaders` object, which contains both the token and any related headers."],["This interface inherits members from `ITokenAccess`, specifically `GetAccessTokenForRequestAsync`, and is part of the `Google.Apis.Auth.OAuth2` namespace within the `Google.Apis.Auth.dll` assembly."]]],[]]