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
<PackageReference Include="Entra.EventHandlers.AspNetCore" Version="1.0.5" />
<PackageVersion Include="Entra.EventHandlers.AspNetCore" Version="1.0.5" />
<PackageReference Include="Entra.EventHandlers.AspNetCore" />
paket add Entra.EventHandlers.AspNetCore --version 1.0.5
#r "nuget: Entra.EventHandlers.AspNetCore, 1.0.5"
#:package Entra.EventHandlers.AspNetCore@1.0.5
#addin nuget:?package=Entra.EventHandlers.AspNetCore&version=1.0.5
#tool nuget:?package=Entra.EventHandlers.AspNetCore&version=1.0.5
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 | 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 (>= 1.2.10)
- Entra.EventHandlers.Hosting (>= 1.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.