npx skills add ...
npx skills add microsoft/skills --skill microsoft-azure-webjobs-extensions-authentication-events-dotnet
Microsoft Entra Authentication Events SDK for .NET. Azure Functions triggers for custom authentication extensions. Use for token enrichment, custom claims, attribute collection, and OTP customization in Entra ID. Triggers: "Authentication Events", "WebJobsAuthenticationEventsTrigger", "OnTokenIssuanceStart", "OnAttributeCollectionStart", "custom claims", "token enrichment", "Entra custom extension", "authentication extension".
npx skills add microsoft/skills --skill microsoft-azure-webjobs-extensions-authentication-events-dotnet
Azure Functions extension for handling Microsoft Entra ID custom authentication events.
Current Version: v1.1.0 (stable)
| Event | Purpose |
|---|---|
OnTokenIssuanceStart | Add custom claims to tokens during issuance |
OnAttributeCollectionStart | Customize attribute collection UI before display |
OnAttributeCollectionSubmit | Validate/modify attributes after user submission |
OnOtpSend | Custom OTP delivery (SMS, email, etc.) |
Add custom claims to access or ID tokens during sign-in.
Fetch claims from external systems (databases, APIs).
Customize the attribute collection page before it's displayed.
Validate and modify attributes after user submission.
Send one-time passwords via custom channels (SMS, email, push notification).
Configure the Function App for authentication events.
| Type | Purpose |
|---|---|
WebJobsAuthenticationEventsTriggerAttribute | Function trigger attribute |
WebJobsTokenIssuanceStartRequest | Token issuance event request |
WebJobsTokenIssuanceStartResponse | Token issuance event response |
WebJobsProvideClaimsForToken | Action to add claims |
WebJobsAttributeCollectionStartRequest | Attribute collection start request |
WebJobsAttributeCollectionStartResponse | Attribute collection start response |
WebJobsAttributeCollectionSubmitRequest | Attribute submission request |
WebJobsAttributeCollectionSubmitResponse | Attribute submission response |
WebJobsSetPrefillValues | Prefill form values |
WebJobsShowBlockPage | Block user with message |
WebJobsShowValidationError | Show validation errors |
WebJobsModifyAttributeValues | Modify submitted values |
WebJobsOnOtpSendRequest | OTP send event request |
WebJobsOnOtpSendResponse | OTP send event response |
WebJobsOnOtpSendSuccess | OTP sent successfully |
WebJobsOnOtpSendFailed | OTP send failed |
WebJobsContinueWithDefaultBehavior | Continue with default flow |
After deploying your Function App, configure the custom extension in Entra ID:
CorrelationId for troubleshooting| SDK | Purpose | Install |
|---|---|---|
Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents | Auth events (this SDK) | dotnet add package Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents |
Microsoft.Identity.Web | Web app authentication | dotnet add package Microsoft.Identity.Web |
Azure.Identity | Azure authentication | dotnet add package Azure.Identity |