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

[Feature] OTP on already authenticated user - avoid login form #641

Open
peppelinux opened this issue Aug 8, 2023 · 0 comments
Open

[Feature] OTP on already authenticated user - avoid login form #641

peppelinux opened this issue Aug 8, 2023 · 0 comments

Comments

@peppelinux
Copy link
Member

This python module forces the user to be authenticated by submitting their username/password in the Login Form.
There are some cases where the django project uses an external authentication system (SAML2, OpenID, OAuth2 ...) and the Form Wizard should start from the TOKEN step instead than the AUTH step.

Expected Behavior

An already authenticated or pre-authenticated user should only be redirected to the setup/otp-form step instead of be forced to resubmit their username and password.

Current Behavior

Even if the user is authenticated he/she is forced to rebmit user and password.

Possible Solution

Further discussion is required before reaching an agreement about what would be the better solution with the less impacts on the current implementation.

Steps to Reproduce (for bugs)

  1. authenticate the user using another LoginView and another authentication system
  2. set a pre-auth status (or authenticate the user) on the custom LoginView
  3. redirect to the two-factor login
  4. the login form forces the user to be authenticated again

Is there any proposal or already available solution for integrate two-factor in an existing authentication system and bypass the username and password submission?

Is there any way to get a user authenticated without submitting the username and password but just the two-factor? (that would be a strategy to elude the login form)

How can I elude the form wizard by settings the internal storage/parameter to redirect the user-agent to the Token form, avoiding the LoginForm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant