ChainedTokenCredential | @azure/identity

Posted by Na Lin on Wednesday, June 19, 2024

TokenCredential implementations to be tried in order.

Example usage:

const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret); const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret); const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrrSv0aKnrWeRr8KzsYyim56mpJ7BunuQZ2hnaF%2BYuaK%2F0p6qaJuYlravscOtpqSdnpi%2FprDEp6uimZxjtbW5yw%3D%3D