Azure Identity for Python

•
41k
•

Simplifies Microsoft Entra ID authentication for Python applications using the Azure Identity SDK.

The Azure Identity for Python skill provides specialized guidance and implementation patterns for authenticating Python applications with Microsoft Entra ID (formerly Azure AD). It focuses on the 'DefaultAzureCredential' approach, which allows developers to write code that seamlessly transitions from local development using Azure CLI credentials to production environments using Managed Identities or Service Principals. This skill includes best practices for token caching, asynchronous authentication, and secure credential management, ensuring your Azure SDK clients are both secure and resilient.

主要功能

01Implements DefaultAzureCredential for automated environment-aware authentication
02Supports Service Principal authentication via client secrets and certificates
0340,657 GitHub stars
04Enables custom ChainedTokenCredential for specialized authentication fallback logic
05Configures Managed Identity for Azure-hosted resources like App Service and AKS
06Provides asynchronous authentication patterns using azure.identity.aio

使用场景

01Setting up local development environments to mirror production Azure authentication
02Authenticating Python apps to Azure Storage or Key Vault without hardcoded credentials
03Implementing secure token acquisition for Azure PostgreSQL or SQL Database connections