Comments (6)
I made a little PoC for a feature like this, I've pushed that here:
https://github.com/pennersr/django-allauth/tree/feat-otp-login
It's functional but definitely not finished. Would appreciate it if you could give it a test spin to see if this matches your use case.
MFA_EMAIL_OTP = True
.
from django-allauth.
FWIW -- it's reusing the regular mfa flow:
from django-allauth.
Hi @pennersr
I hope this feature will make it to the next update. 😉️
from django-allauth.
Thanks for this. below is my use case and some of my own opinions.
Use case: I want to send OTP on user login, redirect the user to the OTP confirmation page, verify the OTP and then send them to their dashboard (or any page I desire).
Opinions:
- Many people are not familiar with the workings of authenticator apps and some people do not want to install yet another app, so the idea of an Email OTP system comes into play. Email 2FA is very popular, especially in my region.
- I believe it should be a global setting. We can activate it globally and require users to provide the OTP code from their email before they can log in.
- Yes, it will require ACCOUNT_EMAIL_REQUIRED to be true.
- The global setting could be something like EMAIL_OTP_VERIFICATION = True.
from django-allauth.
I made a little PoC for a feature like this, I've pushed that here:
https://github.com/pennersr/django-allauth/tree/feat-otp-login
It's functional but definitely not finished. Would appreciate it if you could give it a test spin to see if this matches your use case.
MFA_EMAIL_OTP = True
.
Thank you for this. I will test it and share feedback with you.
from django-allauth.
Hi,
I just tested it and this is exactly what I need!
I got the OTP, entered it and the user was sent to the dashboard!
Thank you.
from django-allauth.
Related Issues (20)
- How do I prevent user login after registration
- Confirm Email With Code HOT 1
- Adding openid_connect to INSTALLED_APPS causes login view to fail HOT 3
- Interest in async support? HOT 4
- password reset translation in turkish HOT 1
- Custom forms for mfa HOT 1
- LinkedIn deprecated parts HOT 2
- MFA trouble
- Error in mfa HOT 1
- Support for url namespaces HOT 4
- MultipleObjectsReturned with django-allauth 0.59.0 HOT 7
- Docs don't match code for ACCOUNT_CHANGE_EMAIL / ACCOUNT_MAX_EMAIL_ADDRESSES HOT 1
- Async view cancellation freeze asgi worker when using django-allauth HOT 6
- Typo in locales HOT 1
- Social login failure using openid_connect with authentik HOT 1
- Issue with SAML user creation HOT 3
- Issue with Microsoft sign in HOT 1
- Problem with 'callback_url' of microsft provider? HOT 1
- Mutliple apps returned because SITE_ID is not filtered in DefaultSocialAccountAdapter.list_apps() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-allauth.