Entra.EventHandlers.AzureFunctions
1.6.1
See the version list below for details.
dotnet add package Entra.EventHandlers.AzureFunctions --version 1.6.1
NuGet\Install-Package Entra.EventHandlers.AzureFunctions -Version 1.6.1
<PackageReference Include="Entra.EventHandlers.AzureFunctions" Version="1.6.1" />
<PackageVersion Include="Entra.EventHandlers.AzureFunctions" Version="1.6.1" />
<PackageReference Include="Entra.EventHandlers.AzureFunctions" />
paket add Entra.EventHandlers.AzureFunctions --version 1.6.1
#r "nuget: Entra.EventHandlers.AzureFunctions, 1.6.1"
#:package Entra.EventHandlers.AzureFunctions@1.6.1
#addin nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.6.1
#tool nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.6.1
Entra.EventHandlers.AzureFunctions
Azure Functions hosting adapter for Microsoft Entra External ID and Microsoft Entra Workforce authentication event handlers.
This package provides Azure Functions integration for the Entra.EventHandlers ecosystem, enabling strongly typed event handlers with dependency injection, event routing, request/response adapters, and centralized orchestration.
Installation
dotnet add package Entra.EventHandlers.AzureFunctions
Features
- Azure Functions Isolated Worker integration
- Multi-event router function
- Single-event function base classes
- Automatic request deserialization
- Automatic response serialization
- Dynamic handler resolution
- Dependency injection integration
- Structured error handling
- Fully testable architecture
Quick Start
Register Entra.EventHandlers:
builder.Services.AddEntraEventHandlers();
Create a router function:
public sealed class EntraEventRouterFunction(
ILogger<EntraEventRouterFunction> logger,
IEntraEventOrchestrator orchestrator,
IRequestAdapter requestAdapter,
IResponseAdapter responseAdapter)
: EntraEventRouterFunctionBase(
logger,
orchestrator,
requestAdapter,
responseAdapter)
{
[Function("Router")]
public Task<HttpResponseData> RunAsync(
[HttpTrigger(
AuthorizationLevel.Function,
"post",
Route = "router")]
HttpRequestData request)
=> InvokeAsync(request);
}
The router automatically:
- Deserializes requests
- Resolves handlers
- Executes handlers
- Serializes responses
- Maps exceptions to HTTP responses
Alternative: Single-Event Functions
The package also provides dedicated function base classes:
- AttributeCollectionStartFunctionBase
- AttributeCollectionSubmitFunctionBase
- EmailOtpSendFunctionBase
- PasswordSubmitFunctionBase
- TokenIssuanceStartFunctionBase
- VerifiedIdClaimValidationFunctionBase
Example:
public sealed class TokenIssuanceStartFunction(
ILogger<TokenIssuanceStartFunction> logger,
ITokenIssuanceStartHandler handler,
IRequestAdapter requestAdapter,
IResponseAdapter responseAdapter)
: TokenIssuanceStartFunctionBase(
logger,
handler,
requestAdapter,
responseAdapter)
{
}
Documentation
Full documentation:
https://github.com/szubajak/entra-event-handlers/tree/main/docs
Azure Functions hosting guide:
https://github.com/szubajak/entra-event-handlers/blob/main/docs/hosting/azure-functions.md
AI-friendly repository metadata:
https://github.com/szubajak/entra-event-handlers/blob/main/llms.txt
Samples
Complete Azure Functions sample:
https://github.com/szubajak/entra-event-handlers/tree/main/samples/AzureFunctionsSample
Minimal Azure Functions sample:
https://github.com/szubajak/entra-event-handlers-azurefunctions
Related Packages
| Package | Purpose |
|---|---|
| Entra.EventHandlers.Abstractions | Public contracts and protocol models |
| Entra.EventHandlers | External ID implementation layer |
| Entra.EventHandlers.Workforce | Workforce implementation layer |
| Entra.EventHandlers.AspNetCore | ASP.NET Core hosting |
| Entra.EventHandlers.Security | PasswordSubmit decryption and Azure Key Vault integration |
License
This package is licensed under the Business Source License (BSL).
The Entra.EventHandlers.Abstractions package is licensed under MIT and may be used freely.
See the repository for licensing details and commercial licensing information.
Further Reading
Entra External ID .NET Handlers Deep Dive
https://medium.com/@jakub.szubarga/entra-external-id-dotnet-handlers-a7447dc1e437
Building CIAM-Ready Azure Functions with Entra.EventHandlers
https://medium.com/@jakub.szubarga/entra-eventhandlers-ciam-azure-functions-97c5e1940272
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Entra.EventHandlers.Abstractions (>= 1.6.0)
- Microsoft.Azure.Functions.Worker (>= 2.52.0)
- Scrutor (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.0 | 110 | 11/16/2026 |
| 1.6.3 | 153 | 10/27/2026 |
| 1.6.2 | 126 | 10/26/2026 |
| 1.6.1 | 125 | 10/14/2026 |
| 1.6.0 | 120 | 10/9/2026 |
| 1.5.1 | 135 | 9/23/2026 |
| 1.5.0 | 131 | 9/14/2026 |
| 1.4.4 | 148 | 9/10/2026 |
| 1.4.3 | 201 | 7/16/2026 |
| 1.4.2 | 146 | 7/16/2026 |
| 1.4.1 | 189 | 6/29/2026 |
| 1.4.0 | 156 | 6/29/2026 |
| 1.3.5 | 166 | 6/26/2026 |
| 1.3.4 | 162 | 6/25/2026 |
| 1.3.3 | 160 | 6/25/2026 |
| 1.3.2 | 173 | 6/18/2026 |
| 1.3.1 | 155 | 6/16/2026 |
| 1.3.0 | 145 | 6/11/2026 |
| 1.2.9 | 151 | 6/8/2026 |
| 1.2.8 | 147 | 6/8/2026 |
Includes Azure Functions hosting adapter for Microsoft Entra External ID and Workforce Authentication
Event Handlers. Provides request/response adapters, DI integration, router function, single-event
function base classes, unified execution pipeline, and structured error handling.