Azure / Azure/azure-sdk-for-python

Azure identity needs a "whoami" function.

Abierto
#41,519 1 comentario 0 reacciones 1 asignado Reclamado por @xiangyan99 Ver en GitHub
Azure.Identity Client customer-reported feature-request needs-team-attention
Lenguaje dominante
Python
Estrellas
5.6k
Forks
3.4k
Merge medio
2 d 2 h
PR fusionados (30 d)
213

Descripción

Greetings,

**Is your feature request related to a problem? Please describe.**
Debugging Azure permissions is often very confusing, especially in least-permissions scenarios where you don't have access to the environment. I want to be sure my code is running with the correct managed identity.

**Describe the solution you'd like**
A function along the lines of this:

```python
credential = DefaultAzureCredential()
principal_details = azure.identity.whoami(credential)
logger.info('Authenticated as: %s %s', principal_details.name, principal_details.client_id)
```

This would help identify misconfiguration, especially in the unfortunate case where a different team manages the environment in which the code runs.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.