Allow Passkeys to be used as a second authentication factor (2FA)

Đang mở
#5,945 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nextjs, typescript

Hướng nghiên cứu

Start with the existing 2FA setup modal and the passkey registration and login flows; the issue does not name their files. Trace how TOTP enrollment and verification are connected, then determine how a registered passkey could be used for a second factor. Done means users can select TOTP or a passkey for 2FA, with the suggested authenticator issuer choices also addressed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
What problem will this feature address?

Currently, Dokploy supports passkeys as an alternative login method to password authentication. However, users cannot use an already registered passkey as a second authentication factor.

When enabling 2FA, the only available option is an authenticator app (TOTP).

This means users have to choose between password-based authentication and passkey authentication, rather than combining both for stronger account security.

Ideally, users should be able to log in using their password and then confirm their identity using a registered passkey, just like they would with an authenticator app.

Describe the solution you'd like

would like to see passkeys added as an additional 2FA method.

In the existing 2FA setup modal, users should be able to choose between:

  • Authenticator App (TOTP) – Use an authenticator app to generate verification codes.
  • Passkey – Use an already registered passkey (e.g. Face ID, Touch ID, Windows Hello or a hardware security key) as the second authentication factor.

This would allow users to combine password authentication with passkey-based 2FA.

Additionally, I would suggest improving the authenticator app setup UI:

  • Replace the current free-text issuer field with a dropdown or predefined options.
  • Include commonly used authenticator apps such as Google Authenticator, Microsoft Authenticator, Authy and 1Password.
  • Allow users to specify a custom issuer if needed.

The overall goal is to make 2FA setup more user-friendly while offering modern, passwordless-compatible security options.

Describe alternatives you've considered
  • Continue using an authenticator app (TOTP) as the only available 2FA method.
  • Use passkeys exclusively for authentication instead of combining them with password authentication.

Neither option provides the flexibility of combining a traditional password with a passkey as a second factor.

Additional context

The current 2FA setup modal already provides a good starting point for this feature.

I believe adding a method selection step would be a natural extension of the existing implementation.

Passkeys are increasingly supported across browsers, operating systems and devices, making them a convenient and phishing-resistant alternative to traditional TOTP codes.

Ideally, users should be able to register a passkey once and then choose to use it either for passwordless login or as a second factor for password-based authentication.

See screenshot below for the new modal (AI generated so its not perfect but it gives a better picture)

Image
Will you send a PR to implement it?

No

Ngôn ngữ chính
TypeScript
Star
38.8k
Fork
3.2k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
110

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Dokploy/dokploy

Tất cả issue của Dokploy/dokploy

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.