Entra.EventHandlers.AzureFunctions
1.2.7
See the version list below for details.
dotnet add package Entra.EventHandlers.AzureFunctions --version 1.2.7
NuGet\Install-Package Entra.EventHandlers.AzureFunctions -Version 1.2.7
<PackageReference Include="Entra.EventHandlers.AzureFunctions" Version="1.2.7" />
<PackageVersion Include="Entra.EventHandlers.AzureFunctions" Version="1.2.7" />
<PackageReference Include="Entra.EventHandlers.AzureFunctions" />
paket add Entra.EventHandlers.AzureFunctions --version 1.2.7
#r "nuget: Entra.EventHandlers.AzureFunctions, 1.2.7"
#:package Entra.EventHandlers.AzureFunctions@1.2.7
#addin nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.2.7
#tool nuget:?package=Entra.EventHandlers.AzureFunctions&version=1.2.7
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 EntraRouterFunction : EntraEventRouterFunctionBase
{
public EntraRouterFunction(
ILogger<EntraEventRouterFunctionBase> logger,
IEntraEventHandlerResolver resolver,
IRequestAdapter requestAdapter,
IResponseAdapter responseAdapter)
: base(logger, resolver, requestAdapter, responseAdapter) {}
[Function("EntraRouter")]
public Task<HttpResponseData> RunAsync(
[HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequestData req,
FunctionContext ctx)
=> Run(req, ctx);
}
🛠 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 : TokenIssuanceStartFunctionBase
{
public TokenIssuanceStartFunction(
ITokenIssuanceStartHandler handler,
IRequestAdapter requestAdapter,
IResponseAdapter responseAdapter)
: base(handler, requestAdapter, responseAdapter) {}
[Function("TokenIssuanceStart")]
public Task<HttpResponseData> RunAsync(
[HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequestData req,
FunctionContext ctx)
=> Run(req, ctx);
}
🔒 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 | 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.7)
- Entra.EventHandlers.Hosting (>= 1.2.7)
- Microsoft.Azure.Functions.Worker (>= 2.52.0)
- Scrutor (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of Azure Functions hosting adapter for Entra Event Handlers.