sickn33/antigravity-awesome-skills/azure-identity-java
- community
Checking that the SKILL.md file is still in the repository.
Authenticate Java applications with Azure services using Microsoft Entra ID (Azure AD).
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-identity-javaSKILL.md
Azure Identity (Java)
Authenticate Java applications with Azure services using Microsoft Entra ID (Azure AD).
Installation
Key Concepts
| Credential | Use Case | |
|---|---|---|
DefaultAzureCredential | Recommended - Works in dev and production | |
ManagedIdentityCredential | Azure-hosted apps (App Service, Functions, VMs) | |
EnvironmentCredential | CI/CD pipelines with env vars | |
ClientSecretCredential | Service principals with secret | |
ClientCertificateCredential | Service principals with certificate | |
AzureCliCredential | Local dev using az login | |
InteractiveBrowserCredential | Interactive login flow | |
DeviceCodeCredential | Headless device authentication |
DefaultAzureCredential (Recommended)
Pin SDK versions and verify the exact chain/features before use. For production, prefer the intended managed/workload identity explicitly or constrain the chain so ambient developer credentials cannot silently select another principal. Confirm tenant, resource endpoint and least-privilege role; secret values shown below are placeholders to load from approved storage, never literals to commit. Do not enable verbose/account logging by default.
The DefaultAzureCredential tries multiple authentication methods in order:
- Environment variables
- Workload Identity
- Managed Identity
- Azure CLI
- Azure PowerShell
- Azure Developer CLI
Configure DefaultAzureCredential
Managed Identity
For Azure-hosted applications (App Service, Functions, AKS, VMs).
Service Principal with Secret
Service Principal with Certificate
Environment Credential
Reads credentials from environment variables.
Required Environment Variables
For service principal with secret:
For service principal with certificate:
For username/password:
Azure CLI Credential
For local development using az login.
Interactive Browser
For desktop applications requiring user login.
Device Code
For headless devices (IoT, CLI tools).
Chained Credential
Create custom authentication chains.
Workload Identity (AKS)
For Azure Kubernetes Service with workload identity.
Token Caching
Token caches depend on credential/version. Account-identifier logging is diagnostics, not cache enablement; it may expose account metadata. Configure persistent caching only through the supported credential-specific cache API and an approved protected store.
Sovereign Clouds
Error Handling
Logging
Enable authentication logging for debugging.
Environment Variables
Best Practices
- Use DefaultAzureCredential - Works seamlessly from dev to production
- Managed Identity in Production - No secrets to manage, automatic rotation
- Azure CLI for Local Dev - Run
az loginbefore running your app - Least Privilege - Grant only required permissions to service principals
- Token Caching - Enabled by default, reduces auth round-trips
- Environment Variables - Use for CI/CD, not hardcoded secrets
Credential Selection Matrix
| Environment | Recommended Credential | |
|---|---|---|
| Local Development | DefaultAzureCredential (uses Azure CLI) | |
| Azure App Service | DefaultAzureCredential (uses Managed Identity) | |
| Azure Functions | DefaultAzureCredential (uses Managed Identity) | |
| Azure Kubernetes Service | WorkloadIdentityCredential | |
| Azure VMs | DefaultAzureCredential (uses Managed Identity) | |
| CI/CD Pipeline | EnvironmentCredential | |
| Desktop App | InteractiveBrowserCredential | |
| CLI Tool | DeviceCodeCredential |
Trigger Phrases
- "Azure authentication Java", "DefaultAzureCredential Java"
- "managed identity Java", "service principal Java"
- "Azure login Java", "Azure credentials Java"
- "AZURE_CLIENT_ID", "AZURE_TENANT_ID"
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationPassed, 70 of 100Effective. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/azure-identity-java/SKILL.md
Popularity
- Repository stars
- 26,144
- Repository forks
- 4,453
- Repository npm downloads, 7 days
- 11,772
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/azure-identity-java)