Entra.EventHandlers.AzureFunctions 1.2.9

dotnet add package Entra.EventHandlers.AzureFunctions --version 1.2.9
                    
NuGet\Install-Package Entra.EventHandlers.AzureFunctions -Version 1.2.9
                    
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.2.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Entra.EventHandlers.AzureFunctions" Version="1.2.9" />
                    
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.2.9
                    
#r "nuget: Entra.EventHandlers.AzureFunctions, 1.2.9"
                    
#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.2.9
                    
#: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.2.9
                    
Install as a Cake Addin
#tool nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.2.9
                    
Install as a Cake Tool

Entra.EventHandlers.AzureFunctions

Azure Functions hosting adapter for Microsoft Entra External ID Authentication Event Handlers.
Provides minimal‑boilerplate hosting, full DI support, structured error handling, and complete testability.

License: Business Source License (BSL)
Author: Jakub Szubarga (Szubarga.NET)


✨ Features

  • 🚀 Single Function → Multiple Entra Event Types
  • 🔄 Automatic request deserialization & response serialization
  • 🧩 Dynamic handler resolution via DI
  • 🛡 Structured error mapping (400/500)
  • 🧪 Fully unit‑testable
  • 🪶 Minimal boilerplate

🧩 Minimal Router Function

public sealed class EntraEventRouterFunction(
    ILogger<EntraEventRouterFunction> logger,
    IEntraEventHandlerResolver resolver,
    IRequestAdapter requestAdapter,
    IResponseAdapter responseAdapter)
    : EntraEventRouterFunctionBase(logger, resolver, requestAdapter, responseAdapter)
{
    [Function("Router")]
    public Task<HttpResponseData> RunAsync(
        [HttpTrigger(AuthorizationLevel.Function, "post", Route = "router")]
        HttpRequestData req,
        FunctionContext context)
        => Invoke(req, context);
}

🛠 Dependency Injection

Register all required components with a single call:

services.AddEntraEventHandlers();

This automatically registers:

  • Request/response adapters
  • Handler resolver
  • All handlers implementing IEntraEventHandler<,>

📦 Optional: Single‑Event Base Classes

If you prefer one function per event type:

public sealed class TokenIssuanceStartFunction(
    ILogger<TokenIssuanceStartFunction> logger,
    ITokenIssuanceStartHandler handler,
    IRequestAdapter requestAdapter,
    IResponseAdapter responseAdapter)
    : TokenIssuanceStartFunctionBase(logger, handler, requestAdapter, responseAdapter)
{
    [Function("TokenIssuanceStart")]
    public Task<HttpResponseData> RunAsync(
        [HttpTrigger(AuthorizationLevel.Function, "post", Route = "tokenissuancestart")]
        HttpRequestData req,
        FunctionContext context)
        => Invoke(req, context);
}

📁 Samples

A complete Azure Functions sample project is available in the repository:

👉 AzureFunctionsSample
https://github.com/szubajak/entra-event-handlers/tree/main/samples/AzureFunctionsSample

The sample demonstrates:

  • registering handlers with AddEntraEventHandlers()
  • using the router function (EntraEventRouterFunctionBase)
  • using single‑event function bases
  • exposing functions with [Function] and [HttpTrigger]
  • structuring a clean, minimal Function App for Entra event handling

This is the recommended starting point for building real Entra Event Handler extensions on Azure Functions.


🔒 License

This package is licensed under the Business Source License (BSL).

A commercial license is required for production use by organizations with more than 5 employees.

Pricing

  • Developer License — €99 / developer / year
  • Team License — €399 / year
  • Enterprise License — €1499 / year

📧 jakub.szubarga@gmail.com

The abstractions package is MIT‑licensed and can be used freely.


📚 Documentation

Full documentation, examples, and production templates will be available in the main repository as the ecosystem evolves.

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.2.9 78 6/8/2026
1.2.8 78 6/8/2026
1.2.7 105 6/7/2026
1.2.6 91 6/6/2026
1.2.5 80 6/6/2026
1.2.4 91 6/5/2026
1.2.3 120 6/3/2026
1.2.0 108 6/3/2026

Initial public release of the Azure Functions hosting adapter for Microsoft Entra External ID Authentication Event Handlers.
Includes request/response adapters, DI integration, router function, and function base classes.