Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
microsoft avatar

Entra App Registration

  • 494k installs
  • 1.3k repo stars
  • Updated July 30, 2026
  • microsoft/azure-skills

entra-app-registration is a Claude agent skill that guides registering an app in Microsoft Entra ID and setting up OAuth 2.0 and MSAL authentication.

About

entra-app-registration is a Microsoft agent skill that guides registering an application in Microsoft Entra ID (formerly Azure AD), configuring OAuth 2.0 flows, requesting API permissions, and integrating MSAL. It walks through registering the app, setting redirect URIs, choosing delegated or application permissions, creating client secrets or certificates, and producing working MSAL code for console, web, SPA, and service apps. A developer uses it when adding Azure AD / Entra authentication or generating a service principal. It defers Azure RBAC role assignments and Key Vault secret audits to other skills.

  • Microsoft Entra ID (Azure AD) app registration
  • OAuth 2.0 flows and API permissions
  • MSAL code for console, web, SPA, service
  • Client secret, certificate, or federated identity

Entra App Registration by the numbers

  • 493,690 all-time installs (skills.sh)
  • +16,985 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #1 of 2,203 Security skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

entra-app-registration capabilities & compatibility

Free MIT-licensed skill; requires an Azure AD/Entra tenant.

Capabilities
app registration · oauth setup · msal integration · service principal creation
Works with
azure
Use cases
security audit · api development
Pricing
Free
From the docs

What entra-app-registration says it does

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration.
SKILL.md
App registrations allow applications to authenticate users and access Azure resources securely.
SKILL.md
MSAL is the recommended library for integrating Microsoft identity platform.
SKILL.md
npx skills add https://github.com/microsoft/azure-skills --skill entra-app-registration

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs494k
repo stars1.3k
Security audit3 / 3 scanners passed
Last updatedJuly 30, 2026
Repositorymicrosoft/azure-skills

How do I register my app in Entra ID and set up OAuth 2.0 authentication with the right API permissions?

api-development

Who is it for?

Developers adding Microsoft Entra ID / Azure AD authentication to an app, configuring OAuth permissions, or generating a service principal.

Skip if: Azure RBAC or role assignments (use azure-rbac), Key Vault secret audits (use azure-keyvault-expiration-audit), or general resource security guidance.

When should I use this skill?

The user asks to create an app registration, register an Azure AD app, configure OAuth, add API permissions, generate a service principal, or wire up MSAL.

What you get

A configured Entra ID app registration with redirect URIs, API permissions, credentials, and working MSAL code to paste into the app.

  • An Entra ID app registration
  • Configured OAuth permissions and credentials
  • MSAL code snippet

By the numbers

  • 5-step core workflow
  • 3 credential types: secret, certificate, federated identity
  • 6 az ad CLI commands documented

Files

SKILL.mdMarkdownGitHub ↗

Overview

Microsoft Entra ID (formerly Azure Active Directory) is Microsoft's cloud-based identity and access management service. App registrations allow applications to authenticate users and access Azure resources securely.

Key Concepts

ConceptDescription
App RegistrationConfiguration that allows an app to use Microsoft identity platform
Application (Client) IDUnique identifier for your application
Tenant IDUnique identifier for your Azure AD tenant/directory
Client SecretPassword for the application (confidential clients only)
Redirect URIURL where authentication responses are sent
API PermissionsAccess scopes your app requests
Service PrincipalIdentity created in your tenant when you register an app

Application Types

TypeUse Case
Web ApplicationServer-side apps, APIs
Single Page App (SPA)JavaScript/React/Angular apps
Mobile/Native AppDesktop, mobile apps
Daemon/ServiceBackground services, APIs

Core Workflow

Step 1: Register the Application

Create an app registration in the Azure portal or using Azure CLI.

Portal Method: 1. Navigate to Azure Portal → Microsoft Entra ID → App registrations 2. Click "New registration" 3. Provide name, supported account types, and redirect URI 4. Click "Register"

CLI Method: See references/cli-commands.md IaC Method: See references/BICEP-EXAMPLE.bicep

It's highly recommended to use the IaC to manage Entra app registration if you already use IaC in your project, need a scalable solution for managing lots of app registrations or need fine-grained audit history of the configuration changes.

Step 2: Configure Authentication

Set up authentication settings based on your application type.

  • Web Apps: Add redirect URIs, enable ID tokens if needed
  • SPAs: Add redirect URIs, enable implicit grant flow if necessary
  • Mobile/Desktop: Use http://localhost or custom URI scheme
  • Services: No redirect URI needed for client credentials flow

Step 3: Configure API Permissions

Grant your application permission to access Microsoft APIs or your own APIs.

Common Microsoft Graph Permissions:

  • User.Read - Read user profile
  • User.ReadWrite.All - Read and write all users
  • Directory.Read.All - Read directory data
  • Mail.Send - Send mail as a user

Details: See references/api-permissions.md

Step 4: Create Client Credentials (if needed)

For confidential client applications (web apps, services), create a client secret, certificate or federated identity credential.

Client Secret:

  • Navigate to "Certificates & secrets"
  • Create new client secret
  • Copy the value immediately (only shown once)
  • Store securely (Key Vault recommended)

Certificate: For production environments, use certificates instead of secrets for enhanced security. Upload certificate via "Certificates & secrets" section.

Federated Identity Credential: For dynamically authenticating the confidential client to Entra platform.

Step 5: Implement OAuth Flow

Integrate the OAuth flow into your application code.

See:

  • references/oauth-flows.md - OAuth 2.0 flow details
  • references/console-app-example.md - Console app implementation

Common Patterns

Pattern 1: First-Time App Registration

Walk user through their first app registration step-by-step.

Required Information:

  • Application name
  • Application type (web, SPA, mobile, service)
  • Redirect URIs (if applicable)
  • Required permissions

Script: See references/first-app-registration.md

Pattern 2: Console Application with User Authentication

Create a .NET/Python/Node.js console app that authenticates users.

Required Information:

  • Programming language (C#, Python, JavaScript, etc.)
  • Authentication library (MSAL recommended)
  • Required permissions

Example: See references/console-app-example.md

Pattern 3: Service-to-Service Authentication

Set up daemon/service authentication without user interaction.

Required Information:

  • Service/app name
  • Target API/resource
  • Whether to use secret or certificate

Implementation: Use Client Credentials flow (see references/oauth-flows.md#client-credentials-flow)

MCP Tools and CLI

Azure CLI Commands

CommandPurpose
az ad app createCreate new app registration
az ad app listList app registrations
az ad app showShow app details
az ad app permission addAdd API permission
az ad app credential resetGenerate new client secret
az ad sp createCreate service principal

Complete reference: See references/cli-commands.md

Microsoft Authentication Library (MSAL)

MSAL is the recommended library for integrating Microsoft identity platform.

Supported Languages:

  • .NET/C# - Microsoft.Identity.Client
  • JavaScript/TypeScript - @azure/msal-browser, @azure/msal-node
  • Python - msal

Examples: See references/console-app-example.md

Security Best Practices

PracticeRecommendation
Never hardcode secretsUse environment variables, Azure Key Vault, or managed identity
Rotate secrets regularlySet expiration, automate rotation
Use certificates over secretsMore secure for production
Least privilege permissionsRequest only required API permissions
Enable MFARequire multi-factor authentication for users
Use managed identityFor Azure-hosted apps, avoid secrets entirely
Validate tokensAlways validate issuer, audience, expiration
Use HTTPS onlyAll redirect URIs must use HTTPS (except localhost)
Monitor sign-insUse Entra ID sign-in logs for anomaly detection

SDK Quick References

  • Azure Identity: Python | .NET | TypeScript | Java | Rust
  • Key Vault (secrets): Python | TypeScript
  • Auth Events: .NET

References

  • OAuth Flows - Detailed OAuth 2.0 flow explanations
  • CLI Commands - Azure CLI reference for app registrations
  • Console App Example - Complete working examples
  • First App Registration - Step-by-step guide for beginners
  • API Permissions - Understanding and configuring permissions
  • Troubleshooting - Common issues and solutions

External Resources

Related skills

How it compares

Use entra-app-registration for application identity and OAuth; use azure-rbac for resource-level role assignments on Azure services.

FAQ

What does entra-app-registration set up?

It guides Microsoft Entra ID app registration, OAuth 2.0 authentication, API permission selection, and MSAL integration for console and web apps.

Which credential types does it cover?

Client secrets, certificates, and federated identity credentials for confidential client applications, with Key Vault recommended for storage.

Does it handle Azure RBAC roles?

No; it defers Azure RBAC and role assignments to azure-rbac and Key Vault secret audits to azure-keyvault-expiration-audit.

Is Entra App Registration safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Securityappsecsecrets

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.