Dloizides.Registration
0.2.0
See the version list below for details.
dotnet add package Dloizides.Registration --version 0.2.0
NuGet\Install-Package Dloizides.Registration -Version 0.2.0
<PackageReference Include="Dloizides.Registration" Version="0.2.0" />
<PackageVersion Include="Dloizides.Registration" Version="0.2.0" />
<PackageReference Include="Dloizides.Registration" />
paket add Dloizides.Registration --version 0.2.0
#r "nuget: Dloizides.Registration, 0.2.0"
#:package Dloizides.Registration@0.2.0
#addin nuget:?package=Dloizides.Registration&version=0.2.0
#tool nuget:?package=Dloizides.Registration&version=0.2.0
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
LoginNotFoundandTenantMismatch: the deletion request stays open and nothing was erased. After an operator has checked it, callAccountEraser.CloseByOperatorAsync. A login that is gone closes with an announce. A found login is refused unless the operator picksOperatorCloseMode.DeleteFoundLoginandEmailmatches the login; that writes an audit line, disables and deletes the login, then announces. No tenant is removed. - Pass the account's
UsernameandEmailonAccountEraseRequest, 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 untilSetAsyncreturnsDone. - Ports honour their cancellation token:
StepTimeoutrelies on it.
| Product | Versions 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. |
-
net10.0
- Dloizides.Jobs (>= 1.4.1)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.6)
-
net8.0
- Dloizides.Jobs (>= 1.4.1)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.11)
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.