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\u003eThe \u003ccode\u003eITokenAccess\u003c/code\u003e interface allows for the direct retrieval of access tokens, enabling request authentication without using \u003ccode\u003eBaseClientService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e method retrieves an access token, with support for automatic token refreshing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e method accepts an \u003ccode\u003eauthUri\u003c/code\u003e string parameter, indicating the URI the token will grant access to, and a \u003ccode\u003eCancellationToken\u003c/code\u003e for task cancellation.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns a \u003ccode\u003eTask<string>\u003c/code\u003e representing the access token.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eITokenAccess\u003c/code\u003e is 1.69.0, and previous versions are available from 1.68.0 to 1.50.0.\u003c/p\u003e\n"]]],[],null,[]]