Allows direct retrieval of access tokens to authenticate requests.
This is necessary for workflows where you don't want to use
BaseClientService to access the API.
(e.g. gRPC that implemenents the entire HTTP2 stack internally).
Gets an access token to authorize a request.
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-05 UTC."],[[["This webpage provides documentation for the `ITokenAccess` interface, which facilitates direct retrieval of access tokens for request authentication, useful in scenarios outside of `BaseClientService` such as gRPC."],["The latest version available is 1.69.0, but the current content describes version 1.50.0, with links available to other versions."],["The primary method provided by `ITokenAccess` is `GetAccessTokenForRequestAsync`, which retrieves an access token and supports automatic token refreshing."],["`GetAccessTokenForRequestAsync` takes an optional `authUri` parameter, which is a URI that the returned token will grant access to, and a `cancellationToken` which allows the method to be cancelled."],["The method `GetAccessTokenForRequestAsync` will return a task of type string, which will contain the access token."]]],[]]