microsoft-azure-webjobs-extensions-authentication-events-dotnet

Handle Microsoft Entra ID custom authentication events in .NET Azure Functions.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill microsoft-azure-webjobs-extensions-authentication-events-dotnet-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microsoft-azure-webjobs-extensions-authentication-events-dotnet
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/microsoft-azure-webjobs-extensions-authentication-events-dotnet
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill microsoft-azure-webjobs-extensions-authentication-events-dotnet-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a reusable .NET extension and implementation patterns to handle Microsoft Entra ID custom authentication events so teams can enrich tokens, customize attribute collection flows, enforce validation, and deliver OTPs without modifying the core identity platform.

Core Features & Use Cases

  • Token enrichment: Inject custom claims during OnTokenIssuanceStart for authorization and downstream services.
  • Attribute collection: Prefill, validate, and modify user-supplied attributes during collection flows and show validation or block pages when needed.
  • OTP customization: Send one-time passwords via custom channels and report success or failure to Entra ID.
  • Use case: Query an external user profile service during sign-in to add employeeId, department, and roles to the issued token for fine-grained access control.

Quick Start

Implement an Azure Functions handler that listens for the OnTokenIssuanceStart event and adds a custom claim to the response.

Frequently Asked Questions about microsoft-azure-webjobs-extensions-authentication-events-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom claims to Microsoft Entra ID tokens during sign-in?

To add custom claims to Microsoft Entra ID tokens, handle the OnTokenIssuanceStart event in an Azure Functions .NET app using WebJobsAuthenticationEventsTrigger and return a WebJobsAuthenticationEventResponse with the injected claims for downstream authorization.

Can I use Azure Functions to validate user attributes during Entra ID sign-up flows?

You can validate user attributes during Entra ID sign-up by implementing the OnAttributeCollectionSubmit scenario in your .NET Azure Function, allowing you to modify inputs, enforce validation rules, and display validation or block pages as needed.

What is the best way to prefill attributes in an Entra ID custom authentication event?

The best way to prefill attributes in Entra ID custom authentication events is to handle the OnAttributeCollectionStart scenario within your .NET Azure Function, populating the response with known values before the user interacts with the collection UI.

Does handling Entra ID authentication events require returning a specific response type?

Handling Entra ID authentication events requires returning WebJobsAuthenticationEventResponse types from your .NET handlers to ensure the Azure Functions extension properly formats the payload for the identity platform.

Why do my Entra ID custom authentication event handlers time out before completing external calls?

Entra ID custom authentication event handlers time out when external API calls exceed authentication timeouts; use managed identities for efficient, secure external calls and log correlation IDs to trace execution delays within the .NET handler.