You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two factor not working with other authentication backend (django-auth-adfs)
Expected Behavior
I'm trying to setup 2fa for application with already configured authentication with django-auth-adfs, and have issue with using it.
Setup with QR code successfully completed, but when i log out from application and login again and try access to the views with OTPRequiredMixin it check my login and cannot process login step
when the login_url configured as django_auth_adfs:login login_url = 'django_auth_adfs:login'
it return error To Many redirects
when the login_url configured as two_facrtort:login login_url = 'two_factor:login'
it return the login form that i can't process (because user doesn't have login\password in application )
Current Behavior
When user already authenticated in application we can check this by request.user.is_authentificated and force step with auth without any input ( username \password form )
Possible Solution
Modification class LoginView, add force step auth for this class if request.user.is_authentificated is True
Two factor not working with other authentication backend (django-auth-adfs)
Expected Behavior
I'm trying to setup 2fa for application with already configured authentication with django-auth-adfs, and have issue with using it.
Setup with QR code successfully completed, but when i log out from application and login again and try access to the views with OTPRequiredMixin it check my login and cannot process login step
login_url = 'django_auth_adfs:login'
it return error To Many redirects
login_url = 'two_factor:login'
it return the login form that i can't process (because user doesn't have login\password in application )
Current Behavior
When user already authenticated in application we can check this by
request.user.is_authentificated
and force step with auth without any input ( username \password form )Possible Solution
Modification class LoginView, add force step auth for this class if
request.user.is_authentificated
isTrue
Steps to Reproduce (for bugs)
my settings.py looks like:
Your Environment
The text was updated successfully, but these errors were encountered: