Entra.EventHandlers.AzureFunctions 1.6.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Entra.EventHandlers.AzureFunctions --version 1.6.2
                    
NuGet\Install-Package Entra.EventHandlers.AzureFunctions -Version 1.6.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Entra.EventHandlers.AzureFunctions" Version="1.6.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Entra.EventHandlers.AzureFunctions" Version="1.6.2" />
                    
Directory.Packages.props
<PackageReference Include="Entra.EventHandlers.AzureFunctions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Entra.EventHandlers.AzureFunctions --version 1.6.2
                    
#r "nuget: Entra.EventHandlers.AzureFunctions, 1.6.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Entra.EventHandlers.AzureFunctions@1.6.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.6.2
                    
Install as a Cake Addin
#tool nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.6.2
                    
Install as a Cake Tool

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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

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.