ChainedTokenCredential.getToken(TokenRequestContext request) Method

Definition

Sequentially calls getToken on all the specified credentials, returning the first successfully obtained AccessToken. This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.

public Mono<AccessToken> getToken(TokenRequestContext request)

Parameters

request
TokenRequestContext

the details of the token request

Returns

reactor.core.publisher.Mono<AccessToken>

a Publisher that emits a single access token

Applies to