Repository navigation
refactor!: Refactor e-mail IDP provider to support Flutter client package - #4058
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
SandPod
left a comment
There was a problem hiding this comment.
Changes looks good and I like the cleanup of the exceptions.
Have a couple of comments.
305a459 to
bfd958a
Compare
|
While working on this PR, we realized that the |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 77 @marcelomendoncasoares, I've created issue #4067 to track the splitting of the |
SandPod
left a comment
There was a problem hiding this comment.
Looks good now, had a last couple of questions and suggestions.
e58bb2b to
a672fef
Compare
This PR enables #3644.
Account registration and Password reset now return a request ID
To allow a simple and secure verification process, we now return a request ID for both account registration and password reset requests. This request ID can be combined with the verification code sent via email to verify the request. As the ID is also sent via email, more advanced use cases such as magic links are still possible. For invalid requests, this ID will be a random UUID.
Hide account not found exceptions from the client
To enhance security, the system no longer throws any kind of "account not found" exception when a user tries to register an already existing email or reset the password for a non-existing email. Instead, it behaves as if the request was successful and throws a generic "unauthorized" error message when trying to complete the request. This change ensures that attackers cannot determine whether an email is registered in the system.
E-mail exception and reason refactor
Exceptions for email accounts have been renamed for better clarity and consistency, together with their reasons. Serialization has also been changed to use names instead of indexes, improving readability and maintainability. All exception reason enums now have a default value for future-proofing.
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes