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
I use LineageOS for MicroG on my NFC enabled phone and recently bought a Yubikey 5 NFC. While the phone does detect the Yubikey via NFC or UCB-OTG, there seems to be no support for U2F/ Fido2 / webauthn. I used the Yubico U2F demo site to test it.
If I understand correctly, this functionality is provided on stock Android with the usual Google Apps through the Google play services library, which then exposes it via an API to the mobile browser. On my device, depending on the browser I either get "The user agent does not support public key credentials" (Jelly), or I get a timeout while trying (Chrome, Firefox, Brave).
On a non LineageOS / non-microg device with the Chrome browser, the Yubico demo site works fine.
The browsers (except Jelly) all have support for U2F if I am not mistaken, so that is not the reason I think...
Are there any plans to incorporate this in MicroG? I could not find any info on it, so I'm asking here.
Thanks for any leads - and of course for MicroG in general, I appreciate it very much!
Oneplus 6 (Enchilada)
LineageOS 16 for MicroG (official build from last week)
tried with the following browsers: Jelly, Chrome, Firefox, Brave
Reacted by Marc Pilloud, Christoph Böhme, Aidan, Aart Goossens, Niklas Loeser, Peter Kubica, chpio, lutogniew, afgks, Marcel Menzel and 83 more
Reacted by Alexei Solonari, Georg Zetzsche, Albertas Š., Lorenz Brun, Adrian Freund, Zhongke Chen, SriSivaC, Neo Ukudlala, jrt, Pepijn de Vos and 13 more
Here's a Chromium ticket confirming this is handled by Google Play Services. I just wanted to throw in that the PIN implementation is especially important to me.
It seem that this issue should affect CalyxOS, /e/ OS and some others as well.
So Apps requiring a high security level like banking or trading have to rely on weaker biometrics or 2FA at best :(
I guess that now with more workers doing their job from home their enterprise will ask for some security level using keys like Yubikey, OnlyKey...
I've considered trying that route but I'm unsure regarding the licenses. This project is Apache 2.0 licensed, hwsecurity is GPLv3. From my (admittedly very limited) understanding of Open Source license compatibility, this means we can't even link against that library. Is that correct? Can anyone with more knowledge on that subject confirm/deny before I waste time on an unusable implementation?
You should not link to that directly or this project would need to switch to GPLv3. However, you could expose an API at this project level that could be implemented in a separate app, like what is done with location providers. This way the supposed hwsecurity "mfa-provider" (or whatever we call it) itself could be a GPLv3 app, keeping microG on the other side of the API, and no licensing issues.
Just a small note from us, the devs of the Hardware Security SDK at https://github.com/cotechde/hwsecurity: Currently, the SDK is dual-licensed under the GPLv3 and a proprietary license. This allows us to have a business model by selling the SDK under the proprietary license that allows our customers to include it in their closed-source software.
Our business no longer works when we would license the SDK under Apache v2 since the Apache license allows the inclusion in closed-source apps.
That said, feel free to build one GPLv3 app with the SDK that exposes the API via AIDL and the call it from microG.
Reacted by Adrian Freund, brunoais, Troy C., Zhongke Chen, Daniel Martins, Samuel, Sam A., Thomas McWork, Santiago Saavedra, jrt and 4 more
+1 here, from someone using FIDO2/WebAuthN in production at day job, and having implemented FIDO2 server-side protocol in PHP.
Having support either in MicroG or the OS build would be great. Noting from the Chromium ticket referenced above, this is nothing that would /have to/ live in MicroG but could go all the way down to AOSP. Sad that there's no resource in AOSP for this to happen.
I guess an app+linking to HWSecurity code is the easiest way forward short-term.
I just want to point out, that there's another issue regarding FIDO implementation: last time I tried using FIDO (YubiKey 5 NFC) on a regular Google Play Services enabled Android phone, the only browser that worked with it was Google Chrome. Other browsers didn't work. Now, I don't know if it's Google's FIDO implementation that intentionally makes it unusable in other browsers (since other browsers like Firefox technically do have support for FIDO, just look in about:config) or if it's something else.
If we were to implement FIDO in microG or all the way down to AOSP, we would still have to wait for third party browsers to implement the API.
@restena-sw Fennec F-Droid (a fork of Firefox) will likely include microG FIDO libraries soon so it will likely work although it isn't ready yet.
relan is working on it.
Reacted by Be, AverageHelper, Daniel Lewan, Pavle, Felix Stupp and Felix Schröter
I'm closing this issue now, as I feel that Bluetooth support, caBLE support and the non-browser Fido API are minor functionality (which I also probably won't tackle in near future).
Reacted by ale5000, Be, foss-, Pavle, AverageHelper, brunoais and Felix Schröter
Reacted by AverageHelper, brunoais, Felix Stupp and hyx0329
I waited a long time for this feature to be implemented and I just tested v0.2.25.x and cannot get FIDO2 to work 🤔
This is me trying to log into github:
It immediatly fails without a prompt.
So therefore I have tried webauthn.io:
Now here at least I did get a prompt if I want to use my securty key and it vibrates after holding it against my phone. However as you see the process still fails.
Any idea what is happening? Or did I misunderstand the implemented feature?
webauthn.io: If you are using a SoloKey via NFC or USB: microG only supports user verification performed on the authenticator itself, which typically means they need a fingerprint scanner. If you're using the option of using the devices screen lock, that should provide user verification. On webauthn.io you can also disable "require user verification" under advanced settings.
GitHub does work for me and if it fails without a prompt, the key itself can't be the issue. Can you please provide a logcat (feel free to do a new issue for this)?
webauthn.io: If you are using a SoloKey via NFC or USB: microG only supports user verification performed on the authenticator itself, which typically means they need a fingerprint scanner.
Oh I did not know that! Yes you are right after unticking user verification it works ;)
Will user verification with security key and PIN be supported in the future?
GitHub does work for me and if it fails without a prompt, the key itself can't be the issue. Can you please provide a logcat (feel free to do a new issue for this)?
Thank you I followed your suggestion and opened a new issue: #1817
webauthn.io: If you are using a SoloKey via NFC or USB: microG only supports user verification performed on the authenticator itself, which typically means they need a fingerprint scanner.
@mar-v-in Could you clarify please: Is using a FIDO2-Token with a PIN (e.g., a yubikey) not supported at all? Or is this just something with the SoloKey?
microG currently does not support FIDO2 authentication methods that require a PIN to be entered on the client (if PIN is entered on the authenticator, there is no issue, but only few authenticators support that). PIN is required for most popular security keys (incl. Yubikey and Solokey) when user verification is required, but often is optional if user verification is not required. Rule of thumb: If you need to enter your PIN when using your Yubikey for sign-in on your desktop (which typically means your browser asks for your PIN) it won't work with microG. This is the same restriction as is currently present in Play Services, as is reported in this issue in Chromium bug tracker.
I'm not saying that we can't go beyond the feature set of Play Services, but it is not a primary objection of microG. If someone wants to implement this (shouldn't be too hard) I'd be happy to accept a PR.
Hi there, I'm on 0.2.26.223616-37 and U2F works both via NFC and USB. WebAuthn works on registration via USB but not authentication. NFC for WebAuthn doesn't work at all. Device Pixel 4a.
Activity
afgks commentedon Jul 17, 2020
Same question here.
gtbuchanan commentedon Sep 27, 2020
Here's a Chromium ticket confirming this is handled by Google Play Services. I just wanted to throw in that the PIN implementation is especially important to me.
bintzandt commentedon Dec 28, 2020
Hi everyone, I was wondering if anybody is currently working on this issue?
Sami32 commentedon Feb 18, 2021
It seem that this issue should affect CalyxOS, /e/ OS and some others as well.
So Apps requiring a high security level like banking or trading have to rely on weaker biometrics or 2FA at best :(
I guess that now with more workers doing their job from home their enterprise will ask for some security level using keys like Yubikey, OnlyKey...
jr64 commentedon Aug 9, 2021
I'm very interested in this feature as well. At least support for simple Registration/Sign-In could probably be implemented fairly easily using https://github.com/cotechde/hwsecurity.
I've considered trying that route but I'm unsure regarding the licenses. This project is Apache 2.0 licensed, hwsecurity is GPLv3. From my (admittedly very limited) understanding of Open Source license compatibility, this means we can't even link against that library. Is that correct? Can anyone with more knowledge on that subject confirm/deny before I waste time on an unusable implementation?
ssaavedra commentedon Aug 9, 2021
You should not link to that directly or this project would need to switch to GPLv3. However, you could expose an API at this project level that could be implemented in a separate app, like what is done with location providers. This way the supposed hwsecurity "mfa-provider" (or whatever we call it) itself could be a GPLv3 app, keeping microG on the other side of the API, and no licensing issues.
jr64 commentedon Aug 19, 2021
Yeah, that's what I thought, thank you for confirming. While not ideal for the end user, I guess this is still the most viable solution.
I currently don't have a phone that is suitable for microG but I do plan on getting one. I'll give this a go if I can manage to find the time.
dschuermann commentedon Aug 31, 2021
Just a small note from us, the devs of the Hardware Security SDK at https://github.com/cotechde/hwsecurity: Currently, the SDK is dual-licensed under the GPLv3 and a proprietary license. This allows us to have a business model by selling the SDK under the proprietary license that allows our customers to include it in their closed-source software.
Our business no longer works when we would license the SDK under Apache v2 since the Apache license allows the inclusion in closed-source apps.
That said, feel free to build one GPLv3 app with the SDK that exposes the API via AIDL and the call it from microG.
nsp-devel commentedon Sep 29, 2021
+1 here, from someone using FIDO2/WebAuthN in production at day job, and having implemented FIDO2 server-side protocol in PHP.
Having support either in MicroG or the OS build would be great. Noting from the Chromium ticket referenced above, this is nothing that would /have to/ live in MicroG but could go all the way down to AOSP. Sad that there's no resource in AOSP for this to happen.
I guess an app+linking to HWSecurity code is the easiest way forward short-term.
samsapti commentedon Sep 30, 2021
I just want to point out, that there's another issue regarding FIDO implementation: last time I tried using FIDO (YubiKey 5 NFC) on a regular Google Play Services enabled Android phone, the only browser that worked with it was Google Chrome. Other browsers didn't work. Now, I don't know if it's Google's FIDO implementation that intentionally makes it unusable in other browsers (since other browsers like Firefox technically do have support for FIDO, just look in
about:config) or if it's something else.If we were to implement FIDO in microG or all the way down to AOSP, we would still have to wait for third party browsers to implement the API.
samsapti commentedon Sep 30, 2021
Btw, is there anything wrong with switching microG to GPLv3? Just curious.
nsp-devel commentedon Oct 7, 2021
I tried current Firefox 92 on a Samsung S6 with stock Android 7 and that supported FIDO2 just fine. I.e. can't confirm a "Chrome only".
duplexsystem commentedon Oct 7, 2021
Are the microg maintainers against bountys because if not I'd like to put one on this
duplexsystem commentedon Oct 8, 2021
I added a 20$ bounty for this
89 remaining items
ale5000-git commentedon Oct 31, 2022
@restena-sw
Fennec F-Droid (a fork of Firefox) will likely include microG FIDO libraries soon so it will likely work although it isn't ready yet.
relan is working on it.
ale5000-git commentedon Oct 31, 2022
@mar-v-in
Is it possible to have another nightly build with the latest fixes please?
mar-v-in commentedon Nov 2, 2022
Nightly is updated.
I'm closing this issue now, as I feel that Bluetooth support, caBLE support and the non-browser Fido API are minor functionality (which I also probably won't tackle in near future).
fyrak1s commentedon Nov 4, 2022
Hi, sorry for bringing this issue up again.
I waited a long time for this feature to be implemented and I just tested v0.2.25.x and cannot get FIDO2 to work 🤔
This is me trying to log into github:

It immediatly fails without a prompt.
So therefore I have tried webauthn.io:

Now here at least I did get a prompt if I want to use my securty key and it vibrates after holding it against my phone. However as you see the process still fails.
Any idea what is happening? Or did I misunderstand the implemented feature?
My security key is a Solokey 1 NFC.
mar-v-in commentedon Nov 4, 2022
webauthn.io: If you are using a SoloKey via NFC or USB: microG only supports user verification performed on the authenticator itself, which typically means they need a fingerprint scanner. If you're using the option of using the devices screen lock, that should provide user verification. On webauthn.io you can also disable "require user verification" under advanced settings.
GitHub does work for me and if it fails without a prompt, the key itself can't be the issue. Can you please provide a logcat (feel free to do a new issue for this)?
ale5000-git commentedon Nov 4, 2022
@Nuc1eoN: I suggest also to try with the latest nightly build since some bugs were fixed after the release, the NFC timeout was also increased.
fyrak1s commentedon Nov 4, 2022
Oh I did not know that! Yes you are right after unticking user verification it works ;)
Will user verification with security key and PIN be supported in the future?
Thank you I followed your suggestion and opened a new issue: #1817
Yannik commentedon Nov 4, 2022
@mar-v-in Could you clarify please: Is using a FIDO2-Token with a PIN (e.g., a yubikey) not supported at all? Or is this just something with the SoloKey?
mar-v-in commentedon Nov 4, 2022
microG currently does not support FIDO2 authentication methods that require a PIN to be entered on the client (if PIN is entered on the authenticator, there is no issue, but only few authenticators support that). PIN is required for most popular security keys (incl. Yubikey and Solokey) when user verification is required, but often is optional if user verification is not required. Rule of thumb: If you need to enter your PIN when using your Yubikey for sign-in on your desktop (which typically means your browser asks for your PIN) it won't work with microG. This is the same restriction as is currently present in Play Services, as is reported in this issue in Chromium bug tracker.
I'm not saying that we can't go beyond the feature set of Play Services, but it is not a primary objection of microG. If someone wants to implement this (shouldn't be too hard) I'd be happy to accept a PR.
Yannik commentedon Nov 4, 2022
@mar-v-in Oh, that's too bad. Thank you for the explanation.
Chinchzilla commentedon Jan 19, 2023
Hi there, I'm on 0.2.26.223616-37 and U2F works both via NFC and USB. WebAuthn works on registration via USB but not authentication. NFC for WebAuthn doesn't work at all. Device Pixel 4a.
ale5000-git commentedon Jan 20, 2023
@Chinchzilla
Please open a new ticket for the problem.
If you can. also update microG GmsCore to v0.2.27.223616 (or higher) please.