Skip to content

Is there any workaround for using Entra Tokens? #517

Open
@ShenyiLu-SnapLogic

Description

@ShenyiLu-SnapLogic

https://devblogs.microsoft.com/devops/no-new-azure-devops-oauth-apps-beginning-february-2025/
No new Azure DevOps OAuth apps beginning March 2025, so our team is planning to update our code to use Entra application instead.

With the new Entra on-behalf-of token, we can call dev API directly, like https://dev.azure.com/<our_org>/<our_project>/_apis/git/repositories?api-version=7.1-preview.1, but we can not use it with this SDK. The exception is thrown here:
https://github.com/microsoft/azure-devops-python-api/blob/dev/azure-devops/azure/devops/connection.py#L70
resource_areas = self._get_resource_areas()
"TF400813: The user '<user_id>' is not authorized to access this resource."
This code is supposed to fetch ResourceAreaInfo for azure.devops.connection.Connection.

Is there any workaround to use Entra token? Or any plan to update this SDK to be compatible with Entra?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions