ChainedTokenCredential
in package
implements
TokenCredential
FinalYes
Tries token credentials in order until one can provide a token.
Table of Contents
Interfaces
- TokenCredential
- Defines how an Azure credential obtains access tokens.
Properties
- $sources : array<string|int, mixed>
Methods
- __construct() : mixed
- getToken() : AccessToken
- Requests an access token for the supplied OAuth scopes.
Properties
$sources read-only
private
array<string|int, mixed>
$sources
= []
Methods
__construct()
public
__construct([array<string|int, TokenCredential> $sources = [] ]) : mixed
Parameters
- $sources : array<string|int, TokenCredential> = []
-
Credentials to attempt in priority order.
getToken()
Requests an access token for the supplied OAuth scopes.
public
getToken(TokenRequestContext $context) : AccessToken
Parameters
- $context : TokenRequestContext