Support multiple NFC-devices and backends

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

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

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

評価

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

調査の方向性

まず、#152 で導入された NFC サポートと、既存の pcsc および libnfc の検出パスを確認します。ユーザーが複数の NFC デバイスを選択する方法と、両方のバックエンドで検出されたデバイスを重複排除する方法を定義します。両方のバックエンドを重複するデバイスなしで使用でき、複数デバイスの選択に明確なフローがあれば完了です。

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

説明

enhancement transport: nfc

With #152 we'll get NFC support, but this PR has currently the restriction to return only the first device that was found.

There are two reasons for this:

  1. Making a device blink and wait for user-interaction is not possible with NFC, so we can't run the same flow we do for USB, when multiple devices are found. There needs to be a new flow established to select multiple found devices.
  2. We currently support two backends for NFC detection: pcsc and libnfc. libnfc CAN be compiled with pcsc-support, but doesn't have to be. If it is compiled with pcsc-support, we will find each pcsc-discoverable device twice, if libwebauthn was compiled with support for both backends. Since we can't know if libnfc is compiled with pcsc-support or not, it would be advisable to always use both backends to maximize
    chances of finding a device (this can also change underneath us, if system-libs are updated and libnfc adds/removes pcsc-support) . If we want to return more than one NFC-device in the future, we would need to look into de-duplicating devices found by both pcsc and libnfc.

These two problems would need to be solved, if we ever want to return more than one NFC-device.

For now, we stick with returning only one device, thus avoiding both problems.

主要言語
Rust
スター
602
フォーク
33
平均マージ
1日 13時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

linux-credentials/libwebauthn のほかの issue

linux-credentials/libwebauthn の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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