Repository navigation
Add secure email verification registration workflow - #2
Merged
Merged
Conversation
hifeamin
marked this pull request as ready for review
November 18, 2026 23:11
Collaborator
Author
|
Thanks for the review. I addressed the comments in commit Applied
Design decisions retained
The updated workflow is running for the new commit. I will not merge the PR. |
Collaborator
Author
|
Implemented in commit
This also means a repeated registration does not change the existing user's username, phone number, email, password, or custom properties. If the user needs to change those values, that should be handled by a separate authenticated account-management or recovery flow. |
hifeamin
commented
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the agreed generic verification infrastructure, with email registration as the first workflow.
RequireEmailVerificationForExternalLogins.Email delivery
The core library defines
IVerificationSender<TUser, TKey>but deliberately does not implement an email/SMS provider. The basic sample contains an example MailKit SMTP sender. MailKit is a sample-only dependency; consumers must implement and register their own sender.CI and publishing
The redundant
.github/workflows/ci.ymland the separate MailKit library project have been removed. The existingpublish.ymlis the single workflow:mainrun the test suite.mainrun the test suite.Breaking changes and setup
IUserAccountService.RegisterAsynchas been removed in favor ofIRegistrationService<TUser, TKey>.AddVerificationServices, register a durableIVerificationRequestStore<TKey>and their own sender, and add verification entities to a relational DbContext.AddVerificationRequestEntity<TKey>().MapAdminUserApirequires theAdministratorrole by default or a named authorization policy.RegistrationVerificationResponse.Messageis a generic client-facing status message; it does not reveal whether the email already belongs to an account or whether an email was actually sent.Verification
publish.ymlsuccessfully ran the test suite on the updated PR commit.Review notes
Please pay particular attention to the external-provider trust policy, EF atomicity across the supported relational provider, and the major-version registration migration.