Dloizides.Registration 0.3.0

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

Dloizides.Registration

One registration and account-erase flow, hosted inside each service on that service's own database. Product rules plug in through five ports.

Ports

Port Step
IRegistrationScreen Extra request screening; the shared screen always runs
ITenantProvisioner Create, remove, disable and restore the tenant
IIdentityProvisioner Create, find, disable and delete the login, in the request's realm
IVerificationChannel Send the verification message
IRegistrationResultEnricher Add product fields to the first response

Host wiring

services.AddRegistration<IdentityDbContext>(options => configuration.GetSection(RegistrationOptions.SectionName).Bind(options));
modelBuilder.ApplyRegistrationAttempts();
jobsBuilder.AddJob<RegistrationReconcileJob>();

Call RegisterAccount.ExecuteAsync from the endpoint and map RegistrationResponse to HTTP. Call AccountEraser.EraseAsync from the sweep with the realm stored on the deletion request; store RecordLoginConfirmed and pass it back as LoginPreviouslyConfirmed; close the request only when MayComplete is true. DeletionGracePolicy.Resolve gives the grace for a new deletion request.

Host duties

  • Alert on the Critical log for LoginNotFound and TenantMismatch: the deletion request stays open and nothing was erased. After an operator has checked it, call AccountEraser.CloseByOperatorAsync. A login that is gone closes with an announce. A found login is refused unless the operator picks OperatorCloseMode.DeleteFoundLogin and Email matches the login; that writes an audit line, disables and deletes the login, then announces. No tenant is removed.
  • Pass the account's Username and Email on AccountEraseRequest, stored with the deletion request, so every attempt row for the person is deleted, also on resume.
  • Before signing a verified user in, call NewPasswordGate.IsRequiredAsync. When true, issue no session and do not mark the address verified until SetAsync returns Done.
  • Ports honour their cancellation token: StepTimeout relies on it.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (1)

Showing the top 1 NuGet packages that depend on Dloizides.Registration:

Package Downloads
Dloizides.Registration.Keycloak

Realm-aware Keycloak adapter for Dloizides.Registration: every call acts in the realm it is given, and a failed lookup never reads as an absent user.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 135 11/8/2026
0.2.0 114 11/4/2026
0.1.0 131 11/3/2026