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

Add QR Code Generation for 2FA #1544

Closed
3 tasks done
csm10495 opened this issue Jun 24, 2023 · 3 comments
Closed
3 tasks done

Add QR Code Generation for 2FA #1544

csm10495 opened this issue Jun 24, 2023 · 3 comments
Labels
area: auth enhancement New feature or request

Comments

@csm10495
Copy link

Requirements

  • This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
  • Please check to see if this request (or a similar one) already exists.
  • It's a single feature. Please don't request multiple features in one issue.

Describe the feature you'd like

Right now when you enable 2fa, it gives you a '2FA installation link'. I personally don't have a way to easily use that link. Most TOTP 2FA things i've used generate a QR code for you to scan to save somewhere.

Requsting that the UI generate a QR code for scanning by apps like Google Authenticator, Authy, etc. to generate 2FA pins.

@csm10495 csm10495 added the enhancement New feature or request label Jun 24, 2023
@csm10495
Copy link
Author

csm10495 commented Jun 24, 2023

As a related comment, i couldn't get 2FA to work, i manually generated a qr code, scanned with authy, but it wouldn't work. :/

Edit: Figured out what is likely happening with this comment: LemmyNet/lemmy#3316

@drspod
Copy link

drspod commented Jun 24, 2023

I also had this problem. My browser does not handle otpauth:// links.

Another problem is that the 2FA setup process does not verify at any point that the user has correctly received the credential by doing what every other website does and request that the user type in a 2FA code immediately to complete the setup process.

I anticipate many users locking themselves out of their account while trying to manually type the code from that URL into their TOTP app, then logging out to test that it works - (it won't).

I also anticipate users using whatever shady website is returned by google to paste their OTP code into it to generate a QR code to scan, thereby leaking their 2FA credential to whoever operates said shady website.

The current implementation of this feature is worse for security than not having it.

@foss-
Copy link

foss- commented Jan 10, 2024

This can be closed, right? 0.19.1 shows a dialog with a QR Code for 2FA setup:

1

@Nutomic Nutomic closed this as completed Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: auth enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants