All skills
microsoft avatar

/entra-app-registration

@b3c238e
by microsoftmicrosoft/skills3.1k stars
351

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

Use this Skill: https://skilld.dev/gh/microsoft/skills/entra-app-registration

This session only. Nothing lands on disk.

referencessdkmicrosoft-azure-webjobs-extensions-authentication-events-dotnet.md

≈381 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Authentication Events — .NET SDK Quick Reference

Condensed from microsoft-azure-webjobs-extensions-authentication-events-dotnet. Full patterns (attribute collection, OTP customization, external data enrichment) in the source plugin skill if installed.

Install

dotnet add package Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents

Quick Start

using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents;
using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart;

[FunctionName("OnTokenIssuanceStart")]
public static WebJobsAuthenticationEventResponse Run(
    [WebJobsAuthenticationEventsTrigger] WebJobsTokenIssuanceStartRequest request,
    ILogger log)
{
    var response = new WebJobsTokenIssuanceStartResponse();
    response.Actions.Add(new WebJobsProvideClaimsForToken
    {
        Claims = new Dictionary<string, string> { { "claim", "value" } }
    });
    return response;
}

Best Practices

  • Validate all inputs — never trust request data; validate before processing
  • Handle errors gracefully — return appropriate error responses, don't throw
  • Log correlation IDs — use CorrelationId for troubleshooting
  • Keep functions fast — authentication events have timeout limits
  • Use managed identity — access Azure resources securely
  • Cache external data — avoid slow lookups on every request
  • Test locally — use Azure Functions Core Tools with sample payloads
  • Monitor with App Insights — track function execution and errors

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides comprehensive and secure guidance for Microsoft Entra ID app registration and integration. It emphasizes industry best practices, such as utilizing managed identities and secure secret storage, while referencing official Microsoft libraries and standard tooling.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    16/16 files flagged

Signed by skilld at b3c238e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 19 hours ago.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.2.1"
}

README badge

README badge for microsoft/skills/entra-app-registration