Sefrone.Api.Auth.Identity 3.6.2

Sefrone dotnet api packages

Restricting account emails

Override ValidateAccountEmailAsync(projectName, email) on the auth configurator to reject emails a project shouldn't accept (e.g. only verified domains). It runs before an email is written: account creation (including Email2FA and OAuth2 auto-create), batch creation (one rejected email fails the whole batch) and email updates. The default accepts everything.

Account lifecycle hooks

Register an IApiAccountLifecycleHandler in DI to be told when an account is disabled, enabled (OnAccountActivationStateChangedAsync, only when the state changes) or deleted (OnAccountDeletedAsync), whichever endpoint or service call made the change. Handlers run after the change is written and before the request commits: one using the auth unit of work joins the transaction, one using another unit of work commits it itself, and one that throws rolls the change back. A project purge doesn't call them; use IApiProjectPurgeHandler for that.

Project purge

Requesting a purge deactivates the project at once (new logins and existing tokens stop working) and deletes all its data once the delay has passed. Until then it can be cancelled, which restores the project.

POST   project/purge/{id}   request (root; AuthFeatures.Projects)
DELETE project/purge/{id}   cancel a pending purge
GET    project/purge/{id}   latest purge and its status: pending | cancelled | completed

Apps that keep AuthFeatures.Projects off can call IApiProjectPurgeService directly.

  • The delay is GetProjectPurgeDelay(projectName) (30 days by default); a background job checks every ProjectPurgeCheckInterval (1 hour by default). The job is not registered by AddApiAuth, call services.AddApiAuthJobs() after it on the hosts that should run background jobs; without it, due purges stay pending.
  • The default project can't be purged.
  • The job deletes the project's tokens, credentials, permissions, workspaces, accounts and the project itself in one transaction. The ProjectPurge record is kept as an audit trail.
  • Packages and apps delete their own per-project data by registering an IApiProjectPurgeHandler. Handlers run first and must be idempotent: a failed purge stays pending and is retried on the next run.

Showing the top 20 packages that depend on Sefrone.Api.Auth.Identity.

Packages Downloads
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
1,420
Sefrone.Api.Auth.Identity.GoogleOAuth2
Sefrone nuget package
1,419
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
786
Sefrone.Api.PersonalInfo
Sefrone nuget package
775
Sefrone.Api.PersonalInfo
Sefrone nuget package
690
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
602
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
492
Sefrone.Api.PersonalInfo
Sefrone nuget package
489
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
473
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
416
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
415
Sefrone.Api.Auth.Identity.GoogleOAuth2
Sefrone nuget package
409
Sefrone.Api.PersonalInfo
Sefrone nuget package
366
Sefrone.Api.Alerts
Sefrone nuget package
359
Sefrone.Api.PersonalInfo
Sefrone nuget package
355
Sefrone.Api.PersonalInfo
Sefrone nuget package
290
Sefrone.Api.Auth.Identity.Email2FA
Sefrone nuget package
283
Sefrone.Api.Auth.Identity.GoogleOAuth2
Core api package containing auth core asp net core functionalities
272
Sefrone.Api.PersonalInfo
Sefrone nuget package
266
Sefrone.Api.Auth.Identity.GoogleOAuth2
Core api package containing auth core asp net core functionalities
263

Version Downloads Last updated
3.6.5 20 11/15/2026
3.6.4 30 11/11/2026
3.6.3 137 11/02/2026
3.6.2 4 11/01/2026
3.6.1 3 11/01/2026
3.6.0 5 11/01/2026
3.5.9 5 11/01/2026
3.5.8 27 10/25/2026
3.5.7 416 10/21/2026
3.5.6 293 10/04/2026
3.5.5 152 10/01/2026
3.5.4 126 09/26/2026
3.5.3 38 09/23/2026
3.5.2 9 09/23/2026
3.5.1 94 09/20/2026
3.5.0 70 09/15/2026
3.4.9 15 09/15/2026
3.4.8 27 09/13/2026
3.4.7 206 08/31/2026
3.4.6 43 08/29/2026
3.4.5 9 08/28/2026
3.4.4 80 08/23/2026
3.4.3 7 08/23/2026
3.4.2 216 08/17/2026
3.4.1 191 08/09/2026
3.4.0 10 08/09/2026
3.3.9 13 08/09/2026
3.3.8 5 08/09/2026
3.3.7 13 08/08/2026
3.3.6 18 08/04/2026
3.3.5 176 08/01/2026
3.3.4 7 08/01/2026
3.3.3 7 08/01/2026
3.3.2 21 07/30/2026
3.3.1 8 07/30/2026
3.3.0 94 07/19/2026
3.2.9 9 07/11/2026
3.2.8 7 07/11/2026
3.2.7 8 06/23/2026
3.2.6 7 06/20/2026
3.2.5 10 06/16/2026
3.2.4 10 06/16/2026
3.2.3 807 06/07/2026
3.2.2 27 06/07/2026
3.2.1 10 06/07/2026
3.2.0 21 05/30/2026
3.1.9 9 05/30/2026
3.1.8 7 05/30/2026
3.1.7 14 05/30/2026
3.1.6 11 05/30/2026
3.1.5 15 05/29/2026
3.1.4 8 05/26/2026
3.1.3 10 05/26/2026
3.1.2 8 05/26/2026
3.1.1 512 04/23/2026
3.1.0 694 04/12/2026
3.0.9 34 04/11/2026
3.0.8 35 04/09/2026
3.0.7 36 04/07/2026
3.0.6 13 04/07/2026
3.0.5 57 04/06/2026
3.0.4 29 04/06/2026
3.0.3 6 04/05/2026
3.0.2 5 04/05/2026
3.0.1 209 03/30/2026
3.0.0 64 03/25/2026
2.9.9 45 03/18/2026
2.9.8 76 03/17/2026
2.9.7 107 03/12/2026
2.9.6 13 03/10/2026
2.9.5 10 03/10/2026
2.9.4 102 03/07/2026
2.9.3 16 03/04/2026
2.9.2 327 01/11/2026
2.9.1 7 01/11/2026
2.9.0 493 12/21/2025
2.8.9 222 12/16/2025
2.8.8 22 12/16/2025
2.8.7 66 12/14/2025
2.8.6 59 12/09/2025
2.8.5 49 12/09/2025
2.8.4 11 12/09/2025
2.8.3 10 12/08/2025
2.8.2 17 12/08/2025
2.8.1 76 12/03/2025
2.8.0 77 12/01/2025
2.7.9 35 12/01/2025
2.7.8 18 11/30/2025
2.7.7 24 11/30/2025
2.7.6 10 11/30/2025
2.7.5 13 11/30/2025
2.7.4 82 11/23/2025
2.7.3 12 11/23/2025
2.7.2 15 11/23/2025
2.7.1 29 11/22/2025
2.7.0 96 11/18/2025
2.6.9 28 11/15/2025
2.6.8 20 11/13/2025
2.6.7 10 11/13/2025
2.6.6 12 11/13/2025
2.6.5 11 11/12/2025
2.6.4 13 11/12/2025
2.6.3 156 10/19/2025
2.6.2 1,472 10/14/2025
2.6.1 13 10/12/2025
2.6.0 49 10/07/2025
2.5.9 120 10/05/2025
2.5.8 59 10/01/2025
2.5.7 311 09/21/2025
2.5.6 56 09/13/2025
2.5.5 332 08/26/2025
2.5.4 32 08/24/2025
2.5.3 37 08/24/2025
2.5.2 22 08/17/2025
2.5.1 108 08/09/2025
2.5.0 19 08/09/2025
2.4.9 38 07/14/2025
2.4.8 175 07/05/2025
2.4.7 406 06/30/2025
2.4.6 145 06/22/2025
2.4.5 161 06/09/2025
2.4.4 53 06/08/2025
2.4.3 21 06/07/2025
2.4.2 17 06/03/2025
2.4.1 114 06/02/2025
2.4.0 19 06/01/2025
2.3.9 237 05/12/2025
2.3.8 26 05/10/2025
2.3.7 23 05/10/2025
2.3.6 22 05/10/2025
2.3.5 20 05/10/2025
2.3.4 33 05/08/2025
2.3.3 25 05/06/2025
2.3.2 26 05/06/2025
2.3.1 22 05/06/2025
2.3.0 76 05/06/2025
2.2.9 64 05/05/2025
2.2.8 21 05/05/2025
2.2.7 27 05/04/2025
2.2.6 17 05/04/2025
2.2.5 19 05/03/2025
2.2.4 20 04/27/2025
2.2.3 21 04/27/2025
2.2.2 162 04/19/2025
2.2.1 23 04/19/2025
2.2.0 20 04/19/2025
2.1.9 20 04/19/2025
2.1.8 19 04/19/2025
2.1.7 74 04/07/2025
2.1.6 18 04/07/2025
2.1.5 17 04/07/2025
2.1.4 53 04/07/2025
2.1.3 21 04/07/2025
2.1.2 25 04/06/2025
2.1.1 26 03/25/2025
2.1.0 189 03/23/2025
2.0.9 22 03/23/2025
2.0.7 29 03/22/2025
2.0.6 24 03/22/2025
2.0.5 271 02/23/2025
2.0.4 23 02/23/2025
2.0.3 23 02/22/2025
2.0.2 21 02/22/2025
2.0.1 110 02/19/2025
2.0.0 45 02/18/2025
1.9.9 27 02/18/2025
1.9.8 55 02/12/2025
1.9.7 117 02/05/2025
1.9.6 59 02/03/2025
1.9.5 19 02/03/2025
1.9.4 284 01/07/2025
1.9.3 249 12/25/2024
1.9.2 28 12/25/2024
1.9.1 43 12/22/2024
1.9.0 25 12/22/2024
1.8.9 38 12/21/2024
1.8.8 27 12/20/2024
1.8.7 27 12/19/2024
1.8.6 24 12/19/2024
1.8.5 23 12/19/2024
1.8.4 26 12/19/2024
1.8.3 31 12/18/2024
1.8.2 27 12/18/2024
1.8.1 21 12/18/2024
1.8.0 25 12/18/2024
1.7.9 23 12/18/2024
1.7.8 23 12/18/2024
1.7.7 32 12/16/2024
1.7.6 17 12/15/2024
1.7.5 28 12/13/2024
1.7.4 271 12/05/2024
1.7.3 34 11/25/2024
1.7.2 73 11/10/2024
1.7.1 80 10/28/2024
1.7.0 54 10/26/2024
1.6.9 100 10/20/2024
1.6.8 35 10/19/2024
1.6.7 60 09/15/2024
1.6.6 24 09/15/2024
1.6.5 281 09/08/2024
1.6.4 42 09/03/2024
1.6.3 23 09/03/2024
1.6.2 62 08/25/2024
1.6.1 33 08/25/2024
1.6.0 24 08/25/2024
1.5.9 22 08/25/2024
1.5.8 24 08/25/2024
1.5.7 60 08/13/2024
1.5.6 23 08/12/2024
1.5.5 19 08/12/2024
1.5.4 21 08/12/2024
1.5.3 22 08/12/2024
1.5.2 25 08/12/2024
1.5.1 21 08/12/2024
1.5.0 24 08/11/2024
1.4.9 36 07/28/2024
1.4.8 29 07/28/2024
1.4.7 29 07/14/2024
1.4.6 34 06/29/2024
1.4.5 129 06/05/2024
1.4.4 20 06/05/2024
1.4.3 40 06/04/2024
1.4.2 19 06/04/2024
1.4.1 31 06/03/2024
1.4.0 30 06/03/2024
1.3.8 28 06/02/2024
1.3.7 19 06/02/2024
1.3.6 21 06/02/2024
1.3.5 20 06/02/2024
1.3.4 40 06/02/2024
1.3.3 18 06/02/2024
1.3.2 21 06/02/2024
1.3.1 20 06/01/2024
1.3.0 18 06/01/2024
1.2.9 18 06/01/2024
1.2.8 27 06/01/2024
1.2.7 19 05/31/2024
1.2.6 21 05/31/2024
1.2.5 20 05/31/2024
1.2.4 21 05/31/2024
1.2.3 19 05/31/2024
1.2.2 19 05/31/2024
1.2.1 24 05/30/2024
1.2.0 19 05/11/2024
1.1.9 19 05/11/2024
1.1.8 23 05/11/2024
1.1.7 51 02/25/2024