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"]],[["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\u003e\u003ccode\u003eITokenAccess\u003c/code\u003e interface allows direct retrieval of access tokens for request authentication, useful when bypassing \u003ccode\u003eBaseClientService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis interface is essential for workflows like gRPC, where the entire HTTP2 stack is handled internally.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e method, part of \u003ccode\u003eITokenAccess\u003c/code\u003e, fetches access tokens and supports automatic token refresh.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e takes \u003ccode\u003eauthUri\u003c/code\u003e (a URI the token will grant access to) and \u003ccode\u003ecancellationToken\u003c/code\u003e as parameters, returning the access token as a string within a Task.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUtilities.ThrowIfNull<T>(T, string)\u003c/code\u003e is an extension method for the \u003ccode\u003eITokenAccess\u003c/code\u003e interface.\u003c/p\u003e\n"]]],[],null,[]]