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."],[[["`ITokenAccess` interface allows direct retrieval of access tokens for request authentication, useful when bypassing `BaseClientService`."],["This interface is essential for workflows like gRPC, where the entire HTTP2 stack is handled internally."],["The `GetAccessTokenForRequestAsync` method, part of `ITokenAccess`, fetches access tokens and supports automatic token refresh."],["The method `GetAccessTokenForRequestAsync` takes `authUri` (a URI the token will grant access to) and `cancellationToken` as parameters, returning the access token as a string within a Task."],["`Utilities.ThrowIfNull\u003cT\u003e(T, string)` is an extension method for the `ITokenAccess` interface."]]],[]]