Azure / Azure/azure-cli

Conditional Access blocks authentication due to unknown device platform

Open
#28,458 4 comments 1 reaction 1 assignee Claimed by @jiasli View on GitHub
Auth Azure CLI Team question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Entra ID Conditional Access enables tenants to block authentication based on originating device platform as determined by User-Agent strings ([feature documentation](https://learn.microsoft.com/entra/identity/conditional-access/concept-conditional-access-conditions#device-platforms)). Azure CLI evidently doesn't set User-Agent for its token requests--they have the default from `requests` e.g. `python-requests/2.31.0`. This doesn't identify any platform, so Conditional Access considers such requests to originate from unknown platforms. The Azure CLI therefore can't authenticate in a tenant having a policy blocking unknown platforms even when used from a known and allowed platform. (From Azure/azure-sdk-for-go/issues/22155)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.