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\u003eThis webpage provides documentation for the \u003ccode\u003eITokenAccess\u003c/code\u003e interface, which facilitates direct retrieval of access tokens for request authentication, useful in scenarios outside of \u003ccode\u003eBaseClientService\u003c/code\u003e such as gRPC.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 1.69.0, but the current content describes version 1.50.0, with links available to other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method provided by \u003ccode\u003eITokenAccess\u003c/code\u003e is \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e, which retrieves an access token and supports automatic token refreshing.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e takes an optional \u003ccode\u003eauthUri\u003c/code\u003e parameter, which is a URI that the returned token will grant access to, and a \u003ccode\u003ecancellationToken\u003c/code\u003e which allows the method to be cancelled.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003eGetAccessTokenForRequestAsync\u003c/code\u003e will return a task of type string, which will contain the access token.\u003c/p\u003e\n"]]],[],null,[]]