Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
618 stars 240 forks source link

Fix broken az devops auth #1225

Closed ericob closed 2 years ago

ericob commented 2 years ago

Updating get_token_from_az_login to use profile.get_raw_token instead of profile.get_access_token_for_resource (which was removed in the MSAL auth migration).

Fixes #1220

Verified by running: az logout az artifacts universal download (tried downloading an artifact to make sure I was logged out) az login az artifacts universal download (successfully downloaded with this change applied)

gauravsaralMs commented 2 years ago

most probably we need to update https://github.com/Azure/azure-devops-cli-extension/blob/master/azure-devops/azext_devops/azext_metadata.json as well

ericob commented 2 years ago

Looks like #1226 did the thorough version of this fix