Entra.EventHandlers.AspNetCore 1.0.5

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

Entra.EventHandlers.AspNetCore

ASP.NET Core hosting adapter for Microsoft Entra External ID Authentication Event Handlers.
Provides minimal‑boilerplate hosting, full DI support, unified exception handling, structured logging, and complete testability.

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


✨ Features

  • 🚀 Single endpoint can host multiple Entra event types
  • 🔄 Automatic request deserialization & response serialization
  • 🧩 Dynamic handler resolution via DI
  • 🛡 Structured error mapping (400/500)
  • 🧪 Fully unit‑testable
  • 🪶 Minimal boilerplate
  • 🧭 Clean endpoint mapping extensions

🚀 Quick Start

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddEntraEventHandlers();

var app = builder.Build();

// Multi‑event router (recommended)
app.MapEntraRouter();

// Or map individual event endpoints
// app.MapEntraAttributeCollectionStart();
// app.MapEntraAttributeCollectionSubmit();
// app.MapEntraTokenIssuanceStart();
// app.MapEntraEmailOtpSend();

app.Run();

🧭 Endpoint Mapping Extensions

app.MapEntraRouter();                // Multi‑event router
app.MapEntraTokenIssuanceStart();    // Single‑event endpoint

Default Routes

Endpoint Default Route
Router router
AttributeCollectionStart attributecollectionstart
AttributeCollectionSubmit attributecollectionsubmit
TokenIssuanceStart tokenissuancestart
EmailOtpSend emailotpsend

🛠 Dependency Injection

services.AddEntraEventHandlers();

Registers:

  • Request/response adapters
  • Handler resolver
  • All IEntraEventHandler<,> implementations
  • All ASP.NET Core endpoint classes (router + single‑event)

🔧 Extensibility

All endpoints inherit from a unified execution pipeline with:

  • Overridable logging hooks
  • Centralized exception handling
  • Consistent request/response processing

📁 Samples

A complete ASP.NET Core sample project is available in the repository:

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

The sample demonstrates:

  • registering handlers with AddEntraEventHandlers()
  • mapping the router endpoint (app.MapEntraRouter())
  • mapping individual single‑event endpoints
  • using the unified execution pipeline (deserialization → resolution → invocation → response)
  • structuring a clean, minimal ASP.NET Core API for Entra event handling

This is the recommended starting point for building real Entra Event Handler extensions on ASP.NET Core.


🔒 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.


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.0.5 89 6/8/2026
1.0.4 89 6/8/2026
1.0.3 91 6/8/2026
1.0.2 88 6/7/2026
1.0.1 94 6/6/2026
1.0.0 88 6/6/2026

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