<PackageReference Include="Azure.Identity" Version="1.17.1" />

Azure.Identity.ChainedTokenCredential

public class ChainedTokenCredential : TokenCredential
Provides a TokenCredential implementation which chains multiple TokenCredential implementations to be tried in order until one of the GetToken methods returns a non-default AccessToken. For more information, see ChainedTokenCredential overview.

Protected constructor for mocking.

public ChainedTokenCredential(TokenCredential[] sources)

Creates an instance with the specified TokenCredential sources.