Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Register Microsoft Entra ID apps and configure OAuth 2.0 authentication with MSAL integration.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-identity-rust.md
1# Authentication — Rust SDK Quick Reference23> Condensed from **azure-identity-rust**. Full patterns (ClientSecret,4> ClientCertificate, WorkloadIdentity, AzurePipelines credentials)5> in the **azure-identity-rust** plugin skill if installed.67## Install8cargo add azure_identity910## Quick Start11```rust12use azure_identity::DeveloperToolsCredential;13let credential = DeveloperToolsCredential::new(None)?;14```1516## Best Practices17- Use DeveloperToolsCredential for local dev — automatically picks up Azure CLI18- Use ManagedIdentityCredential in production — no secrets to manage19- Clone credentials — credentials are Arc-wrapped and cheap to clone20- Reuse credential instances — same credential can be used with multiple clients21- Use tokio feature — `cargo add azure_identity --features tokio`22