Open Bug 2093140 Opened 14 days ago Updated 3 days ago

Danish MitID chip (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160

Categories

(Core :: DOM: Web Authentication, defect, P3)

Firefox 160
Desktop
Linux
defect

Tracking

()

REOPENED
162 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox160 --- wontfix
firefox161 + affected
firefox162 --- affected
firefox163 --- affected

People

(Reporter: eyjhb, Assigned: mfarrell)

References

(Regression)

Details

(Keywords: denmark, parity-chrome, regression)

Attachments

(3 external files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:160.0) Gecko/20100101 Firefox/160.0

Steps to reproduce

  1. Plug in ePass FIDO into my computer
  2. Visit https://webauthn.io
  3. Click register (shows popup)
  4. Device is not detected/doesn't work when pressed/doesn't register anything.

Actual results

FIrefox 160.0 never uses the key, but just prompts and keeps waiting for the token.
This worked fine in previous versions, and I have confirmed that it still works in 159.0.1.

I suspect that it's the reason change in Bug 2081040 (D333509) , which has changed how this now works.

[nix-shell:~]$ fido2-token -L
/dev/hidraw6: vendor=0x096e, product=0x085a (FS ePass FIDO)

[nix-shell:~]$ fido2-token -I /dev/hidraw6
proto: 0x02
major: 0x01
minor: 0x00
build: 0x01
caps: 0x0b (wink, nocbor, nomsg)

My device does not advertise the correct things it seems, but it works just fine on chromium.

Keep in mind, this is the national 2FA chip used in Denmark. So I can't even replace this with a Yubikey...

Expected results

The key works via U2F/CTAP1, as it does in Firefox 159.0.1 and in Chromium.

I'm not sure what the best way is in regards to fallback, but it would be nice if this started to work again.

Useragent: Mozilla/5.0 (X11; Linux x86_64; rv:160.0) Gecko/20100101 Firefox/160.0
OS: NixOS 27.05 (unstable)

@mfarrell, could this be triaged and investigated?

Flags: needinfo?(micolous+moz)
Keywords: regression
Regressed by: 2081040

status-firefox160: affected β†’ wontfix

Does that mean that this bug won't be fixed? The hardware key in question is the official FIDO authenticator for interacting with danish authorities and banks:

https://www.mitid.dk/en-gb/get-started-with-mitid/how-to-use-mitid/mitid-chip/
https://en.wikipedia.org/wiki/MitID

And it breaks login for a lot of people in Denmark.

(In reply to bzh15913 from comment #2)

status-firefox160: affected β†’ wontfix

Does that mean that this bug won't be fixed?

No, the bug is still open and will be investigated

It means it won't get fixed in Firefox 160 specifically, which we have already shipped.

Keywords: parity-chrome
Summary: Feitian ePass FIDO (096e:085a) no longer detected since Firefox 160 → Feitian ePass FIDO (096e:085a) no longer detected since Firefox 160 (Danish national 2FA chip) -- works in Chrome

The MitID authenticator reports capabilities = 0x0b (WINK | 0x2 | NMSG), which indicates that it doesn't support CTAP1 (NMSG is set), and also doesn't support CTAP2 (CBOR is unset).

This is an invalid, non-spec compliant set of flags, and something the manufacturer of these devices needs to fix. The relevant part of the CTAP specification is: https://fidoalliance.org/specs/fido-v2.3-ps-20260226/fido-client-to-authenticator-protocol-v2.3-ps-20260226.html#usb:~:text=The%20capability%20flags%20value%20is%20a%20bitfield%20where%20the%20following%20bits%20values%20are%20defined%2E

Either:

  • Neither CBOR or NMSG should be set = CTAP1-only
  • Only CBOR is set = CTAP1 and CTAP2
  • Both CBOR and NMSG are set = CTAP2-only

From the Firefox side, we could once again treat this (invalid) combination of flags as CTAP1-only, which will probably be fine until something else comes along with this set of flags that only supports CTAP2.

Ultimately, this is a non-compliant authenticator, and the manufacturer (or distributor) needs to either provide a firmware update or replace them.

Regression notes

Before Bug 2081040, Firefox would have used this authenticator as CTAP1, because it would have:

  • CBOR was unset, so it would skip trying to use CTAP2.
  • It would then try to use CTAP1 no matter what, without checking NMSG.

After Bug 2081040, Firefox will now check:

  • CBOR was unset, so it would skip trying to use CTAP2.
  • NMSG was set, so it would skip trying to use CTAP1.
  • No protocol version is supported, so the authenticator would be ignored.

My instinct with handling a conflict between CBOR being unset and NMSG being set is to treat it as supporting CTAP2 only, but the fact that yours supports CTAP1 is... weird.

Chromium

Chromium checks version support by always sending a CTAP2 getInfo command, regardless of capabilities (ie: not spec compliant): https://source.chromium.org/chromium/chromium/src/+/main:device/fido/fido_device.cc;l=32;drc=e53e5009a806f9dbc2fb7fca2543326f3c644611

If this returns an error, it uses CTAP1, otherwise it uses CTAP2: https://source.chromium.org/chromium/chromium/src/+/main:device/fido/fido_device.cc;l=62-71;drc=e53e5009a806f9dbc2fb7fca2543326f3c644611

Chromium will disable fallbacks to CTAP1 if a CTAP2 authenticator does not report U2F_V2 in the getInfo version list.

I'd need to see a getInfo response from the MitID authenticator to know what version it'd actually use.

Testing other Feitian authenticators

I think this issue is specific to the firmware shipped on the MitID, and no other Feitian authenticators.

No other Feitian authenticators I have uses the same set of capabilities flags that the MitID does:

  • Token2-branded Feitian ePass FIDO (096e:0854, 833b721a-ff5f-4d00-bb2e-bdda3ec01e29):
    • capabilities = 0x7 (WINK | 0x2 | CBOR) (CTAP1 + CTAP2)
  • Feitian ePassFIDO NFC (096e:0854, ee041bce-25e5-4cdb-8f86-897fd6418464):
    • capabilities = 0x7 (WINK | 0x2 | CBOR) (CTAP1 + CTAP2)
  • Feitian BioPass FIDO (096e:085d, 77010bd7-212a-4fc9-b236-d2ca5e9d4084):
    • capabilities = 0x7 (WINK | 0x2 | CBOR) (CTAP1 + CTAP2)
  • Feitian MultiPass FIDO (096e:085a, 310b2830-bd4a-4da5-832e-9a0dfc90abf2):
    • capabilities = 0xf (WINK | 0x2 | CBOR | NMSG) (CTAP2 only; but getInfo reports supporting versions FIDO_2_0, FIDO_2_1_PRE, U2F_V2, which conflicts)

The Feitian MultiPass FIDO's USB device descriptor strings report "ePass FIDO", and the Bluetooth + USB authenticator pictured on the the MitID website looks like it. Before Bug 2081040, this would allow downgrades to CTAP1 (if you disable Firefox's CTAP2 support), and after Bug 2081040, Firefox will just treat it as a CTAP2-only authenticator and never downgrade to CTAP1.

In Chromium, the MultiPass would be used as both a CTAP1 and CTAP2 authenticator.

Other vendors' keys I have all either support both CTAP1 and CTAP2, or support one version.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(micolous+moz)
OS: Unspecified → Linux
Priority: -- → P3
Hardware: Unspecified → Desktop
Summary: Feitian ePass FIDO (096e:085a) no longer detected since Firefox 160 (Danish national 2FA chip) -- works in Chrome → Danish MitID (modified Feitian ePass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome
Summary: Danish MitID (modified Feitian ePass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome → Danish MitID (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome
Assignee: nobody → micolous+moz
Status: NEW → ASSIGNED
Summary: Danish MitID (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome → Danish MitID chip (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome

Danish MitID chip (modified Feitian MultiPass FIDO) reports capabilities = 0xb, which is an invalid configuration. Other Feitian authenticators
appear to set valid capability sets, but sometimes contradict this in their
authenticatorGetInfo.versions.

Before Bug 2081040, Firefox treated this as a CTAP1-only authenticator, so
this patch restores that behaviour, and complains when it happens.

The attached patch should work around the bug in MitID chip by treating it as CTAP1-only, like Firefox 159 did (in violation of the CTAP2 spec).

I will leave it to someone with one of these authenticators to make an uplift request, because I have no way to do a full end-to-end test with the Danish government identity provider once this lands on Nightly.

Based on the information available to me, this is ultimately an issue for the Danish government (and/or Feitian) to fix, as these authenticators are not spec compliant (Comment 5). It is possible for other CTAP client platforms to be impacted by this issue, and the only reason Chromium isn't impacted is because it's doing something else not-spec-compliant.

Thanks!

Keywords: denmark
Summary: Danish MitID chip (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160 -- works in Chrome → Danish MitID chip (modified Feitian MultiPass FIDO, 096e:085a) no longer detected since Firefox 160
Pushed by mfarrell@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ccd26bd4d58d https://hg.mozilla.org/integration/autoland/rev/8fc680499a9d Use CTAP1 for authenticators that set `NMSG` without setting `CBOR` (MitID chip) r=jschanck
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

The patch landed in nightly and beta is affected.

:mfarrell, please make an uplift decision for beta:

  • For beta, nominate the patch for beta uplift approval if the fix should be included in this release, or set status-firefox161 to wontfix if the fix can wait for the next release.

Uplift requests can be submitted from Lando: D343371.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(micolous+moz)

I just tried out nightly, and it didn't work for my MitID chip.
I also tried compiling 160.0 from source with the patch, and that didn't seem to work either.

I'm trying to get some of the other to try out nightly as well, to ensure it isn't just a me issue.

Thanks.

What version of Firefox Nightly? You will need Firefox Nightly 162.0a1 (2026-11-17, build ID 20261117093842) or later.

I don't know what the lag time is on updating Mozilla's official APT/DNF/snap/yum/etc. repositories, and if you're getting Nightly from your Linux distribution's packages, there may be further lag time.

When you're testing (even with a locally patched copy), make sure there are no passkey/password manager browser extensions installed (or they're totally disabled), and there are no other browsers open, because they may cause conflicts.

If you're testing on another computer, you'll only see the impact of the issue (and patch) on BSD and Linux. Triggering the issue on macOS requires either using a local build, or explicitly disabling support for iCloud Keychain (about:config -> security.webauthn.enable_macos_passkeys = false).

If the D343371 patch definitely didn't fix it, there's something more going on here, and I will have to order one of these authenticators. Unfortunately, that will probably at least a week to arrive to me in Australia.

Edit: I've gone ahead and ordered one. So we'll see once that eventually arrives. But I won't be able to test this with any Danish government services, only as a simple CTAP authenticator.

Flags: needinfo?(eyjhb)

Firefox 161's uplift deadline is today, and we don't know whether this fix actually works. If we miss this deadline, this is going to be unfixed until at least 2026-12-02 (161.0.1).

I've added needinfo for dmeehan and dveditz on the off-chance that they have a MitID chip and can test this out before the uplift deadline, and request an uplift - but it's now the end of my working day.

I'll leave this open for other Mozilla folks to request an uplift, if they're able to verify that the fix works in Nightly as intended.

I've done some local testing with the Feitian MultiPass FIDO. Nightly 162.0a1 (2026-11-17) works with this, but that has a different set of capabilities that forces Firefox into always using CTAP2. The Feitian works correctly when the device does not have a PIN configured, and takes 1.0-1.5 seconds to handle a request after pressing the button.

However, when the device has a PIN configured, it takes between 1.9 and 2.1 seconds after pressing the button to complete a registration or authentication ceremony, based on the time between last "user presence needed" keep-alive and a MakeCredential/GetAssertion response, which can cause it to fail with the 2.0 second deadline in Bug 1958831.

I've opened Bug 2094511 about that, but that would have been an issue since Firefox 159, and I'm pretty sure it wouldn't affect MitID (as this would have always used CTAP1, and skips user verification).

I've had a look at what I can of mitid.dk to try to find what WebAuthn API calls it tries to make and if it could not be fulfilled by CTAP1, which would also cause it to be excluded after Bug 2081040 (whereas before it'd flash, and then fail). Unfortunately, the site's JS bundle is heavily obfuscated, and designed to frustrate basic static analysis.

I tried guessing a couple of user IDs, but this hit users who'd set up the app, and sent notifications to random peoples' phones rather than use WebAuthn. (This is not a request to post your MitID user ID in Bugzilla, because this is publicly-accessible, and I assume these are PII.)

If the MitID site sends requests that require CTAP2, this would only work with Chromium's CTAP2 implementation, where it ignores the capabilities flags and always tries to send authenticatorGetInfo and use it if it succeeds. If this is the case, there's not a lot we can do without risking breaking other authenticators.

I'm not sure what Apple's and Windows' implementations do, because that'd require building an authenticator firmware with intentional defects.

At the moment, my ability to test this is very limited, and even with a MitID chip in my hands, there is no certainty that I would be able to reproduce the problem.

Thanks!

Flags: needinfo?(micolous+moz)
Flags: needinfo?(dveditz)
Flags: needinfo?(dmeehan)

I downloaded the latest nightly tarball from https://www.firefox.com/en-US/channel/desktop/ , and tested it using that. Sorry that I didn't specify the version, I should have done that to ensure it had the correct patch included.
I tested it in a private session, which didn't have any password manager, and it still didn't seem to recognize it.
I plan on testing it using a live booted Ubuntu when I get home again, and see if the patches work an that. I'm only testing on Linux.

RE mitid.dk, it isn't required to use that domain, as it also doesn't work on https://webauthn.io/ , which is what I've used to test it.
So I don't think you need to reverse engineer any JS, etc. to see what it sends, because it's the same for other sites as well.

I'll try to ping the other people I know again, and see if I can get them to test on nightly.

I got someone to run the nightly as well, and it didn't work for them either. So I think it's still not resolved.

Version: 162.0a1 (2026-11-17) (64-bit)
BuildID: 20261117193337

Is there anything more we can do to aid this process? Commands that can be ran etc.?

I've added needinfo for dmeehan and dveditz on the off-chance that they have a MitID chip and can test this out before the uplift deadline, and request an uplift - but it's now the end of my working day.

I don't have a MitID chip

Flags: needinfo?(dmeehan)

(In reply to eyJhb from comment #15)

I got someone to run the nightly as well, and it didn't work for them either. So I think it's still not resolved.

Thanks for confirming. Unfortunately, I'm not sure why that patch wasn't effective, so I think there may be another factor at play.

Is there anything more we can do to aid this process? Commands that can be ran etc.?

If you're able to get a USB packet capture of trying to use the device with webauthn.io or another demo site on Firefox 159, Firefox Nightly, and Chromium, that'd help.

Wireshark can do USB captures using Linux's usbmon module, and picking usbmon0. If you don't see the device in Wireshark, then need to make sure your user has read-write access to /dev/usbmon0.

Before the capture, start with the device unplugged. Run a capture for each browser/version.

In the capture, make sure no other browser is running at the same time, plug in the device, complete a demo WebAuthn transaction, and then unplug the device again.

When you have a capture of an activity, set a filter on usb.addr to only select the authenticator's device address (eg: usb.addr == "3.14.0"). You can identify the authenticator by looking for a bunch of GET DESCRIPTOR messages when it is plugged in, and one of the Response STRING packets will have a response (under STRING DESCRIPTOR -> bString) of ePass FIDO and FS.

The device's address will change each time you plug it in, so you will need to clear the filter and do that again for each capture.

To save a capture, use File -> Export specified packets (not Save), and in the Packet range section, select All packets and Displayed to remove activities from other USB devices (eg: keyboards, mice, cameras, audio devices), and save it as a pcapng file.

You can then email those to me: mfarrell at mozilla dot com, rather than attaching to this bug (just to make sure that you haven't shared something unexpected).

The capture should help me see what Firefox (and Chromium) are doing with this authenticator, and what it's actually capable of. That'd be what I'd do if I had a MitID chip in my hands :)

Thanks!

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Set release status flags based on info from the regressing bug 2081040

The MitID chip reports capabilities 0xf (CBOR | NMSG), but rejects
authenticatorGetInfo and only works over CTAP1. Like libfido2, clear
CBOR when authenticatorGetInfo fails, so the device is used as
CTAP1-only.

I've made a patch here https://phabricator.services.mozilla.com/D344576 , which I've tested my self to resolve it.
I've found out why the patch made by @mfarrell didn't work, and it's because some extra stuf behind the scenes happened with libfido2.
So libfido2 actually clears CBOR itself, because it fails to answer authenticatorGetInfo fails, which can be seen here:

[nix-shell:~]$ FIDO_DEBUG=1 fido2-token -I /dev/hidraw10
fido_tx: dev=0x5aa7d3d0d440, cmd=0x06
fido_tx: buf=0x5aa7d3d0d440, len=8
0000: bf f3 67 79 27 da f6 75
fido_rx: dev=0x5aa7d3d0d440, cmd=0x06, ms=-1
rx_preamble: buf=0x7ffd833309d0, len=64
0000: ff ff ff ff 86 00 11 bf f3 67 79 27 da f6 75 00
0016: 00 00 06 02 01 00 01 0f 00 00 00 00 00 00 00 00
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
rx: payload_len=17
fido_rx: buf=0x5aa7d3d0d448, len=17
0000: bf f3 67 79 27 da f6 75 00 00 00 06 02 01 00 01
0016: 0f
fido_dev_get_cbor_info_tx: dev=0x5aa7d3d0d440
fido_tx: dev=0x5aa7d3d0d440, cmd=0x10
fido_tx: buf=0x7ffd83330a27, len=1
0000: 04
fido_dev_get_cbor_info_rx: dev=0x5aa7d3d0d440, ci=0x5aa7d3d0d5a0, ms=-1
fido_rx: dev=0x5aa7d3d0d440, cmd=0x10, ms=-1
rx_preamble: buf=0x7ffd83330990, len=64
0000: 00 00 00 06 90 00 03 7f 6d 00 00 00 00 00 00 00
0016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
rx: payload_len=3
fido_rx: buf=0x5aa7d3d0d740, len=3
0000: 7f 6d 00
cbor_parse_reply: blob[0]=0x7f
fido_dev_open_rx: fido_dev_cbor_info_wait: 127
fido_dev_open_rx: falling back to u2f
proto: 0x02
major: 0x01
minor: 0x00
build: 0x01
caps: 0x0b (wink, nocbor, nomsg)

E.g. if I get the flags from Python, it will print out the "real" flags, without any fallbacks.

>>> from fido2.hid import CtapHidDevice
... from fido2.ctap1 import Ctap1
... for d in CtapHidDevice.list_devices():
...     print(d.descriptor.path, hex(d.capabilities))
...     print(Ctap1(d).get_version())
...
/dev/hidraw10 0xf
U2F_V2

As stated, I've tested this myself, and made the patch available. Hopefully this is decent?
Otherwise, feel free to make a new one, which fits Firefox better, maybe?

Flags: needinfo?(eyjhb) → needinfo?(micolous+moz)

Ah, yeah, capabilities: 0xf would do it. So this is an even more non-compliant authenticator, and libfido2's fibs led us to a dead end. :(

The Feitian MultiPass FIDO2 also reports capabilities = 0xf, but actually responds to CTAP2 commands, and GetInfo reports supporting CTAP1 and CTAP2.

There's some other (uncommitted) code which makes clearing the capability from CtapVersionSupport inappropriate - not all authenticators support CTAP1 (or can even represent CTAP1 commands), and so this fallback doesn't always work. I also don't want CtapVersionSupport to be able to operate on &mut self.

Changing the capabilities is only needed in the init function, but I think the better answer will be to rewrite those capabilities with regular fields, rather than lying about it like libfido2 does. It may be possible for an authenticator to respond to GetInfo with just versions: [U2F_V2], and while that'd also be absurd, we should probably handle it.

Because this will need a lot of testing, and we can't test the behaviour of hardware in CI, I'm going to need to look at this next week.

Flags: needinfo?(dveditz)

Sounds good, and yeah, I agree! I assume you'll make a better patch of this sometime next week then :)
I'll continue yelling at the government in the meantime :)

Severity: S3 → S2

The bug is marked as tracked for firefox161 (release). However, the bug still has low priority.

:ckerschb, could you please increase the priority for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(ckerschb)

I'd considered reverting D333509, but that'd impact CTAP2-only authenticators that implement the specs correctly (because Firefox could fall back to using CTAP1 with a device that explicitly states it does not support it, and has no way to signal that it is fallible) and work on Hybrid transport (which does not support CTAP1 at all).

MitID chip is doing something not-spec-compliant, and relied on Firefox's fall-back behaviour and an implementation bug to work correctly. There is a similar fallback and bug in Chromium, which is why it still works there on Linux and macOS (unlike Firefox, Chromium uses their own USB CTAP implementation on macOS rather than platform APIs).

MitID's website claims compatibility with Android, iOS, macOS and Windows (which don't use this code in Firefox), so from MitID's perspective, Linux is unsupported. MitID chip is also one of many authenticator options (others being mobile apps, and two different hardware OTP tokens), and seems to be the only one which always costs money (ignoring the cost of a mobile phone and data plan for the app), so it's not clear how widespread usage of MitID chip is.

Practically speaking, the only way to solve this on the authenticator side is a firmware update (if even possible) or a recall, which will take much longer. MitID's website notes compatibility problems with Bluetooth on Windows 11 (which I can't reproduce with a Feitian MultiPass FIDO2), which suggests there may be spec-compliance problems on its other transports that warrant a hardware revision. However, as I don't have a MitID chip, I can't actually see what's happening there.

While I think there should be some changes to the supplied patch (Comment 21), I think I've got enough information to at least unblock this authenticator without causing problems for other authenticators.

There is some other work that would make this more robust in the face of not-spec-compliant authenticators, but that can wait for a later Firefox release, and (ideally) when I have a MitID chip in my hands (I don't have an ETA or tracking information for that).

Flags: needinfo?(micolous+moz)
Flags: needinfo?(ckerschb)

Mark when a CTAP2 GetInfo fails, and always try to use CTAP1 regardless of
capabilities.

MitID chip sets capabilities: 0xf but only responds to CTAP1 commands.

@eyjhb: New patch for you to test, please take a look: https://phabricator.services.mozilla.com/D345964

This should do the same thing as your patch D344576, except it introduces a new ctap2_failed attribute such that we don't mix it up with capabilities.

This includes tests that simulate the MitID chip, based on your trace in Comment 20.

I'm currently waiting on builds on my Linux machine to test this locally with some different authenticators.

I've got a Try CI run going: https://treeherder.mozilla.org/jobs?repo=try&revision=5bcbecb4611a4d9f38ca70dd8a4a407281829ba6

Once those are all working, I'll get this reviewed and merged. Thanks!

Attachment #9690163 - Attachment description: WIP: Bug 2093140: Fall back to CTAP1 on `GetInfo` errors for MitID → Bug 2093140 - Fall back to CTAP1 on CTAP2 `GetInfo` errors even when `NMSG` is set (MitID) r=jschanck

My local testing looks good with other authenticators, using a variety of CTAP1 and CTAP2 authenticators from different vendors... but obviously I can't check this with MitID.

I applied the patch to authenticator-rs in a branch, and GitHub CI passes there.

I've sent https://phabricator.services.mozilla.com/D345964 for review, and with any luck we can get that uplifted.

Flags: needinfo?(eyjhb)

I tried the new patches you made on top of main (4f6c8bb9a859667fd209b81d795a962dbf656807), and my MitID chip seems to work just fine now.
Here are the logs, just so you can see what happens.

[INFO  authenticator::transport::platform::device] new device "/dev/hidraw3"
[INFO  authenticator::statemachine] error happened with device: Error: requested operation is not available on device
[WARN  authenticator::transport::hid] Authenticator set capability 'NMSG', but doesn't support CTAP2! Using as CTAP1-only.
[WARN  authenticator::transport::hid] Authenticator set capability 'NMSG', but doesn't support CTAP2! Using as CTAP1-only.
[INFO  authenticator::statemachine] Device "/dev/hidraw3" continues with the signing process
[WARN  authenticator::transport::hid] Authenticator set capability 'NMSG', but doesn't support CTAP2! Using as CTAP1-only.
[WARN  authenticator::transport::hid] Authenticator set capability 'NMSG', but doesn't support CTAP2! Using as CTAP1-only.
[INFO  authenticator::statemachine] Statemachine was cancelled. Cancelling transaction now.
[INFO  authenticator::transport::platform::transaction] Transaction was cancelled.
Flags: needinfo?(eyjhb)

Excellent, that's behaving exactly like I expect it to. Thank you!

I updated the patch to add a warning when the GetInfo request fails and include the device name, but all the logic is the same. Hopefully that'll make things a little clearer to someone reading the logs.

Perfect. I assume I don't need to do anything? Once it lands in nightly, I'll ping some people again, and then they can test it as well, and we can the tag it for the next release :)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: