You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(examples): switch webauthn ceremony examples to ReqwestRelatedOriginsClient
Using NoRelatedOriginsClient in the bundled examples taught readers the
wrong default. Wire up the reqwest-backed convenience client instead,
gate the three webauthn ceremony examples on the related-origins-client
feature, and update the README run commands.
Also re-exports HttpPolicy and ReqwestRelatedOriginsClient at
ops::webauthn so examples import from a single path.
|**USB (HID)**|`cargo run --example u2f_hid`|`cargo run --features related-origins-client --example webauthn_hid`|
73
+
|**Bluetooth (BLE)**|`cargo run --example u2f_ble`| — |
74
+
|**NFC**[^nfc]|`cargo run --features nfc-backend-pcsc --example u2f_nfc`<br>`cargo run --features nfc-backend-libnfc --example u2f_nfc`|`cargo run --features nfc-backend-pcsc,related-origins-client --example webauthn_nfc`<br>`cargo run --features nfc-backend-libnfc,related-origins-client --example webauthn_nfc`|
75
+
|**Hybrid (caBLE v2)**| — |`cargo run --features related-origins-client --example webauthn_cable`|
76
76
77
77
[^nfc]: `nfc-backend-pcsc` is pure userspace and recommended on most systems. `nfc-backend-libnfc` requires the `libnfc` system library. Both can be enabled together; the first FIDO device found by either backend is used.
78
78
79
+
[^ro]: The WebAuthn ceremony examples wire up the bundled reqwest-backed [related-origins](https://www.w3.org/TR/webauthn-3/#sctn-related-origins) client, which lives behind the optional `related-origins-client` feature. Consumers that already ship their own HTTP stack can implement `RelatedOriginsHttpClient` directly and omit the feature.
80
+
79
81
Additional HID-only examples cover specific FIDO2 features and authenticator management:
0 commit comments