Skip to content
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

stages/authenticator_email: Email OTP #12630

Open
wants to merge 76 commits into
base: main
Choose a base branch
from

Conversation

melizeche
Copy link

@melizeche melizeche commented Jan 10, 2025

Details

stages/authenticator_email: Add Email Authenticator Stage

Introduces a new authentication stage that enables email-based two-factor authentication. This stage:

  • Allows users to set up and verify their email for 2FA
  • Supports configurable email templates for OTP delivery
  • Integrates with existing flow and challenge system

closes #3291

Documentation PR: #12853


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@melizeche melizeche requested a review from a team as a code owner January 10, 2025 09:10
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 2426e0b
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/679b04fdcd73790008bb4a39

Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 2426e0b
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/679b04fdbe754c000865f137
😎 Deploy Preview https://deploy-preview-12630--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rissson rissson marked this pull request as draft January 10, 2025 17:24
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 96.12245% with 19 lines in your changes missing coverage. Please review.

Project coverage is 92.79%. Comparing base (141ced8) to head (2426e0b).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
authentik/stages/authenticator_email/stage.py 86.91% 14 Missing ⚠️
authentik/stages/authenticator_email/models.py 96.42% 3 Missing ⚠️
authentik/stages/authenticator_validate/stage.py 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12630      +/-   ##
==========================================
+ Coverage   92.69%   92.79%   +0.09%     
==========================================
  Files         769      776       +7     
  Lines       38926    39406     +480     
==========================================
+ Hits        36083    36567     +484     
+ Misses       2843     2839       -4     
Flag Coverage Δ
e2e 48.37% <33.06%> (-0.11%) ⬇️
integration 24.59% <23.26%> (-0.02%) ⬇️
unit 90.47% <96.12%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rissson rissson changed the title [DRAFT] stages/authenticator_email: Email OTP stages/authenticator_email: Email OTP Jan 10, 2025
@melizeche
Copy link
Author

@rissson I pushed the generated schema.yml and blueprints/schema.json
Is this the correct procedure?

@rissson
Copy link
Member

rissson commented Jan 16, 2025

I pushed the generated schema.yml and blueprints/schema.json Is this the correct procedure?

Yes, that's the way to go about it

@melizeche melizeche requested review from BeryJu and rissson January 28, 2025 04:05
@melizeche melizeche marked this pull request as ready for review January 29, 2025 12:13
@melizeche melizeche requested a review from a team as a code owner January 29, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email OTP
3 participants