[Feature]: Desktop app: passkeys
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- graphql, typescript
調査の方向性
Read the #80 epic and #83 first, then inspect the desktop app’s sign-in and Settings → Account flows and the existing GraphQL mutations. The issue leaves the CTAP2 crate and authenticator implementation to be selected and audited; map that work before estimating the implementation. Done means registering, signing in with, and deleting a hardware key, with keys working between web and desktop.
索引モデルが issue の本文から書いたものです。
説明
[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a planning session with @PhrolovaMoe. Part of #80, builds on #83. Read the epic first.
Area
Desktop app
Problem
The web signs in with passkeys, but a native Linux app has no browser WebAuthn. The server only accepts security keys (danger_set_user_presence_only_security_keys), so the desktop must talk to hardware keys itself.
Proposed solution
- CTAP2 over USB HID, behind an
Authenticatortrait (Windows haswebauthn.dlland macOS has AuthenticationServices for later). Pick the crate (ctap-hid-fido2, Mozilla'sauthenticator, or a small own implementation) by which passes the audit with fewer crates and supports CTAP2 PIN + user presence. NFC/BLE are out of scope. - Flows, with the existing GraphQL mutations:
- sign in:
startPasskeySignIn(username, profile)→finishPasskeySignIn(challenge, credential); - register:
startPasskeyRegistration(name)→finishPasskeyRegistration(challenge, credential); - list and delete:
passkeys,deletePasskey(id).
- sign in:
- The server builds its relying party from the request's
Originheader (webauthn_forinsrc/auth/passkeys.rs). The app sendsOrigin: <server origin>on these requests and buildsclientDataJSONwith that origin, as a browser on the server's page would. So passkeys work exactly where they work on web:https://servers andhttp://localhost. Show the web's message otherwise. Confirm no server change is needed; if one is, make it minimal and keep web behaviour identical. - UI as on web: the passkey button on the sign-in screen (when the server's sign-in style allows it), "touch your key" and PIN prompts, the passkey list in Settings → Account.
- Linux needs read/write access to the key's
hidrawdevice. Most distros grant it through udev's FIDO rules. When access is denied, say so with a hint about the udev rule.
Done when
With David's hardware key: register a key from the app, sign in with it on a fresh server entry, delete it. A key registered on web signs in from the app and the other way round.
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 1
- 平均マージ
- 4時間 49分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tinystream-dev/tinystream のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tinystream-dev/tinystream#132 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tinystream-dev/tinystream#131 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
tinystream-dev/tinystream#129 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
tinystream-dev/tinystream#128 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tinystream-dev/tinystream#124 ·
tinystream-dev/tinystream の issue をすべて見る
似ている issue
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
sandbox-quantum/switch#2163 ·
メンテナーはふだん 1 日以内に返信
-
automated issue report
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area/dashboard kind/bug QA/dev-automation
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pydantic/pydantic-ai#13939 ·
メンテナーはふだん 1 日以内に返信
-
self-host
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
funmusicplace/mirlo#2625 ·
メンテナーはふだん 1 日以内に返信