apex-entra-app-registration
Skill216 starsChanged 2 months agoMITView on GitHub
**WORKFLOW SKILL** — Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. WHEN: "create app registration", "register Azure AD app", "configure OAuth", "add API permissions", "generate service principal", "MSAL example", "Entra ID setup". DO NOT USE FOR: Azure RBAC (apex-azure-rbac), Key Vault audits (apex-azure-compliance), resource security scanning (apex-azure-compliance).
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- apex-agent-authoringSkill
- apex-azure-adrSkill
- apex-azure-artifactsSkill
- apex-azure-bicep-patternsSkill
- apex-azure-cloud-migrateSkill
- apex-azure-complianceSkill
- apex-azure-computeSkill
- apex-azure-cost-optimizationSkill
- apex-azure-defaultsSkill
- apex-azure-deploySkill
- apex-azure-diagnosticsSkill
- apex-azure-governance-discoverySkill
- apex-azure-kubernetesSkill
- apex-azure-kustoSkill
- apex-azure-prepareSkill
- apex-azure-quotasSkill
- apex-azure-rbacSkill
- apex-azure-reliabilitySkill
- apex-azure-resourcesSkill
- apex-azure-storageSkill
- apex-azure-upgradeSkill
- apex-azure-validateSkill
- apex-context-managementSkill
- apex-github-operationsSkill
- apex-golden-principlesSkill
- apex-host-debug-log-exportSkill
- apex-host-git-commitSkill
- apex-host-workflow-startSkill
- apex-iac-commonSkill
- apex-mermaidSkill
- apex-microsoft-docsSkill
- apex-python-diagramsSkill
- apex-terraform-patternsSkill
- apex-terraform-search-importSkill
- apex-terraform-testSkill
- apex-unslopSkill
- apex-vendor-promptingSkill
- apex-workflow-engineSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
Never hardcode secrets · rotate regularly · prefer certificates over secrets in production · least-privilege API permissions · enable MFA · …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Entra App Registration
Microsoft Entra ID (formerly Azure AD) is Microsoft's cloud identity and access-management service. This skill guides app registration, OAuth 2.0 flows, and MSAL integration.
For key concepts, application types, and the 3 common patterns (first-time
registration, console app with user auth, service-to-service), read
references/common-patterns.md.
Rules
- Prefer IaC for managing app registrations when the project uses IaC, scales to many apps, or needs audit history (see
references/BICEP-EXAMPLE.bicep) - Prefer certificates or federated identity credentials over client secrets in production
- Protect credential handoff — follow the additive credential procedure; never expose values to chat, tool output or logs
- Bind identity and approval — use the identity and permission boundary before authentication, creation, rotation or consent; instructions are not write authorization
- Grant least-privilege API permissions — only the scopes the app actually uses
- CLI for ad-hoc, IaC for production — see
references/cli-commands.md - Out of scope: Azure RBAC (apex-azure-rbac), Key Vault audits (apex-azure-compliance), resource security scanning (apex-azure-compliance)
Core Workflow
Five-step procedure (full per-step detail in
references/core-workflow.md):
- Register the Application — portal, CLI (
cli-commands.md), or IaC (BICEP-EXAMPLE.bicep) - Configure Authentication — redirect URIs / token settings per app type
- Configure API Permissions — Graph and custom-API scopes (
api-permissions.md) - Create Client Credentials — secret / certificate / federated identity (Key Vault)
- Implement OAuth Flow — code integration (
oauth-flows.md,console-app-example.md)
Microsoft Authentication Library (MSAL)
Recommended library for integrating with the Microsoft identity platform:
- .NET / C# —
Microsoft.Identity.Client - JavaScript / TypeScript —
@azure/msal-browser,@azure/msal-node - Python —
msal
Examples: references/console-app-example.md.
SDK quick references in references/sdk/: Azure Identity for Rust and the Functions authentication-events
extension for .NET. Azure Identity for other languages lives in apex-azure-deploy/references/sdk/.
Security Best Practices
Never hardcode secrets · rotate regularly · prefer certificates over secrets in production · least-privilege API permissions · enable MFA · use managed identity for Azure-hosted apps · validate tokens (issuer / audience / expiration) · HTTPS-only redirect URIs (per the canonical security baseline) · monitor sign-ins via Entra ID logs.
Full details in
references/auth-best-practices.md.
Reference Index
| Reference | When to Load |
references/common-patterns.md | Key concepts, app types, 3 common registration patterns |
references/core-workflow.md | Full per-step procedure for app registration |
references/api-permissions.md | Graph and custom-API permission configuration |
references/auth-best-practices.md | Detailed security best practices |
references/cli-commands.md | Azure CLI reference for app registrations |
references/console-app-example.md | Complete working code examples (multiple languages) |
references/first-app-registration.md | Step-by-step guide for beginners |
references/oauth-flows.md | Detailed OAuth 2.0 flow explanations |
references/troubleshooting.md | Common issues and solutions |
references/BICEP-EXAMPLE.bicep | Bicep template for IaC-managed app registration |
references/sdk/*.md | Language-specific SDK quick references |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

