Entra.EventHandlers.Abstractions 1.3.3

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

Entra.EventHandlers.Abstractions

License: MIT
Author: Jakub Szubarga (Szubarga.NET)
This package is free for all use cases, including commercial use.

This package contains the public abstractions, event types, and protocol definitions for building Microsoft Entra External ID Authentication Event Handlers.

It is intentionally lightweight, dependency‑free, and framework‑agnostic. You can reference it freely in open‑source or commercial projects.

All public types include full XML documentation for a first‑class developer experience.


✨ What This Package Provides

This package defines the public contract for the Entra Event Handlers ecosystem:

  • Strongly‑typed event request models
  • Strongly‑typed response models
  • Action definitions and protocol constants
  • Directory attribute primitives
  • Handler interfaces, e.g.:
  public interface IAttributeCollectionStartHandler 
      : IEntraEventHandler<AttributeCollectionStartEvent, AttributeCollectionStartResponse> { }
  • Enums and metadata types
  • OData‑typed payload models
  • Event type identifiers

These types represent the JSON protocol used by Entra External ID custom authentication flows.

The abstractions are stable, versioned, and safe to depend on in long‑term projects.


🧩 Supported Events

The abstractions package includes complete request/response models and handler interfaces for all currently supported External ID Authentication Event Handlers:

  • AttributeCollectionStart
  • AttributeCollectionSubmit
  • EmailOtpSend
  • PasswordSubmit (just‑in‑time password migration)
  • TokenIssuanceStart

Each event includes:

  • Request model
  • Response model
  • Payload types
  • Action definitions
  • Handler interface

🧩 Why a Separate Abstractions Package?

The abstractions are MIT‑licensed to maximize adoption and interoperability.

They allow you to:

  • Build your own handlers
  • Integrate with Entra External ID events
  • Test locally without Azure
  • Reference the protocol without pulling in implementation details
  • Use the models in any hosting environment (Functions, ASP.NET Core, custom hosts)

The full implementation lives in separate packages under the Business Source License (BSL).


These packages extend the abstractions with production‑ready functionality:

Entra.EventHandlers — implementation layer (BSL)

  • Validation
  • Response builders
  • Logging & telemetry

Entra.EventHandlers.AzureFunctions — Azure Functions adapter (BSL)

  • Automatic request/response handling
  • DI wiring
  • Minimal boilerplate for production deployments

Entra.EventHandlers.AspNetCore — ASP.NET Core adapter (BSL)

  • Minimal API endpoint integration
  • Router endpoint
  • Single‑event endpoint classes

All packages are available on NuGet.


📄 License

This package is licensed under the MIT License.
See the LICENSE file for details.

The implementation and hosting adapters are available under the Business Source License (BSL) in the related packages.


📚 Documentation

Full documentation, examples, and production templates are available in the main repository.


📘 Further Reading

For a deeper look into Microsoft Entra External ID Authentication Event Handlers and the design of this ecosystem, see the full article:

➡️ Entra External ID — .NET Handlers Deep Dive
https://medium.com/@jakub.szubarga/entra-external-id-dotnet-handlers-a7447dc1e437

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Entra.EventHandlers.Abstractions:

Package Downloads
Entra.EventHandlers

Core implementation library for Microsoft Entra External ID Authentication Event Handlers. Provides fluent response builders, handler base classes, validation, routing helpers, and extensibility points for building custom authentication flows.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.3 71 6/18/2026
1.3.2 145 6/10/2026
1.3.1 105 6/10/2026
1.3.0 91 6/10/2026
1.2.10 125 6/8/2026
1.2.9 227 6/7/2026
1.2.8 135 6/6/2026
1.2.7 136 6/6/2026
1.2.4 113 6/5/2026
1.2.3 165 6/3/2026
1.2.0 143 6/3/2026
1.1.1 139 6/2/2026
1.1.0 144 6/1/2026
1.0.31 141 6/1/2026
1.0.30 135 6/1/2026
1.0.28 149 5/30/2026
1.0.25 131 5/30/2026
1.0.24 136 5/30/2026
1.0.22 131 5/30/2026
1.0.21 139 5/30/2026
Loading failed

Initial public release of the Microsoft Entra External ID Authentication Event Handlers abstractions.
Includes protocol models, action types, and directory attribute primitives.