Skip to content

feat(transport): advertise NFC and hybrid transports#282

Draft
AlfioEmanueleFresta wants to merge 2 commits into
masterfrom
feat/advertise-nfc-hybrid-transports
Draft

feat(transport): advertise NFC and hybrid transports#282
AlfioEmanueleFresta wants to merge 2 commits into
masterfrom
feat/advertise-nfc-hybrid-transports

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

The library implements four transports but advertised only USB and BLE, and registration responses always returned an empty transports list. This adds NFC and hybrid to the public transport list, with NFC shown only when a backend is compiled in, and fills the registration transports from the transport actually used, ordered and deduplicated per the WebAuthn rules.

Closes #258.

…ransports

Add NFC and hybrid/caBLE to the public Transport enum and report compiled-in transports from available_transports. NFC is gated behind the nfc-backend features and hybrid is always present.

Thread the active transport from the channel into registration response serialization so the response transports member carries the AuthenticatorTransport token. The list is deduplicated, sorted, and stays empty when the transport is unknown. Both the FIDO2 and U2F-downgrade paths are covered.
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/advertise-nfc-hybrid-transports branch from b497ec4 to d834534 Compare June 15, 2026 21:30
@iinuwa

iinuwa commented Jun 15, 2026

Copy link
Copy Markdown
Member

@AlfioEmanueleFresta, my read of the WebAuthn spec says that transports should be all the transports supported by the authenticator. Since libwebauthn doesn't expose authenticator get info directly, does it make sense to have the transports be returned by libwebauthn (e.g. in the MakeCredentialResponse) instead of the caller specifying it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(transport): advertise NFC/hybrid and report registration transports

2 participants