-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-5093][PM-7325] Added trial initiation email verification endpoint #4221
[PM-5093][PM-7325] Added trial initiation email verification endpoint #4221
Conversation
|
||
if (!globalSettings.EnableEmailVerification) | ||
{ | ||
await PerformConstantTimeOperationsAsync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Not a blocker, just curious what the Task.Delay
is for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I just pushed a change adding an explanatory comment. The idea is to mitigate timing attacks where an attacker can detect if a user exists based on how long the request takes to complete
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4221 +/- ##
==========================================
- Coverage 41.65% 41.59% -0.07%
==========================================
Files 1271 1276 +5
Lines 60197 60294 +97
Branches 5528 5534 +6
==========================================
+ Hits 25078 25082 +4
- Misses 33949 34042 +93
Partials 1170 1170 ☔ View full report in Codecov by Sentry. |
New Issues
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-5093
https://bitwarden.atlassian.net/browse/PM-7325
📔 Objective
This pull request adds a billing controller
src\Identity\Billing\Controller\AccountsController.cs
with the single endpointPostTrialInitiationSendVerificationEmailAsync
. This endpoint is behind Auth's feature flagemail-verification
as it relies on their work.This PR duplicates some of the work done in #4173 but places it in billing-owned code related to initiating a new trial.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes