feat(transport): advertise NFC and hybrid transports#282
Conversation
…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.
b497ec4 to
d834534
Compare
|
@AlfioEmanueleFresta, my read of the WebAuthn spec says that |
|
Thanks @iinuwa, agreed. I switched it to do exactly that. The registration This follows the spec's |
|
Yeah, that sounds good to union those, though it would be weird if an authenticator didn't specify that it supports the transport it just used. |
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.