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

オープン
#5,945 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
nextjs, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
38.8k
フォーク
3.2k
平均マージ
1日 10時間
マージ済み PR(30日)
110

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Dokploy/dokploy のほかの issue

Dokploy/dokploy の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。