Entra.EventHandlers.Workforce 1.0.0

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

Entra.EventHandlers.Workforce

Workforce‑specific event models, fluent builders, and handler base classes for
Microsoft Entra Workforce account recovery extensions.

This package builds on top of the MIT‑licensed Entra.EventHandlers.Abstractions
and provides the strongly‑typed request/response types and developer‑experience layer
for the VerifiedIdClaimValidation event used during Workforce account recovery.


🚀 Features

✔ Workforce Event Models

Strongly‑typed request and response types for:

  • VerifiedIdClaimValidationEvent
  • VerifiedIdClaimValidationResponse
  • VerifiedIdClaimValidationPassAction
  • VerifiedIdClaimValidationFailedAction

These models mirror the official Microsoft Entra Workforce event schema.


✔ Fluent Response Builders

A guided, strongly‑typed API for constructing valid Workforce responses:

  • VerifiedIdClaimValidationResponseBuilder
  • FailedClaimsBuilder

Example:

return EntraWorkforceEventResponses
    .VerifiedIdClaimValidation()
    .Pass()
    .Build();

Or return failed claims:

return EntraWorkforceEventResponses
    .VerifiedIdClaimValidation()
    .Failed(["employeeId", "department"])
    .Build();

✔ Unified Workforce Entry Point

A single, discoverable API surface:

EntraWorkforceEventResponses.VerifiedIdClaimValidation();

✔ Base Handler Infrastructure

Includes:

  • Structured logging
  • Correlation scoping
  • Execution timing
  • Protocol validation (@odata.type)
  • Consistent exception handling
  • Clean override point (HandleCoreAsync)
public class VerifiedIdHandler(ILogger<VerifiedIdHandler> logger)
    : VerifiedIdClaimValidationHandlerBase(logger)
{
    protected override Task<VerifiedIdClaimValidationResponse> HandleCoreAsync(
        VerifiedIdClaimValidationEvent request,
        CancellationToken cancellationToken)
    {
        // Custom validation logic here
        return Task.FromResult(
            EntraWorkforceEventResponses
                .VerifiedIdClaimValidation()
                .Pass()
                .Build());
    }
}

  • Entra.EventHandlers.Abstractions — public protocol types (MIT)
  • Entra.EventHandlers — core implementation layer for External ID (BSL)
  • Entra.EventHandlers.AspNetCore — ASP.NET Core hosting adapter (BSL)
  • Entra.EventHandlers.AzureFunctions — Azure Functions hosting adapter (BSL)

🔒 License

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

See:

  • LICENSE — full BSL terms
  • LICENSE-COMMERCIAL.md — commercial licensing terms

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

A commercial license covers the entire Entra Event Handlers ecosystem, including all current and future BSL‑licensed packages.

Commercial License Pricing

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

For commercial licensing or support:
📧 jakub.szubarga@gmail.com

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


📘 Further Reading

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

➡️ 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.

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.0 48 6/26/2026

Initial release of Workforce-specific event types for Microsoft Entra External ID Authentication Event Handlers.
Includes the VerifiedIdClaimValidation event model used during Workforce account recovery flows.