0
votes

I'm developing an extension that runs within a work item. Is there a way I can acquire an AAD token for the current logged in user, which can be used to authenticate to an AAD protected backend service like Azure App Service/Key Vault etc?

1
Instead of azure-devops-extension-api, consider using azure-activedirectory-library-for-js. See similar issue here. - LoLance

1 Answers

0
votes

I'm afraid you can't do that directly. Azure Devops Service and Azure are not the same things.

We can use VSS SDK and azure-devops-extension-api to get Azure-devops related info(AccessToken for Azure Devops Service,Org info, Project info, User info), but we can't get AAD token using these related api cause these apis are for Azure Devops Service.