Google account login problems

174 views
Skip to first unread message

Jiří Bělohradský

unread,
Dec 7, 2020, 4:45:22 AM12/7/20
to FIDO Dev (fido-dev)
Hello,

I am developing a FIDO2 authenticator. It has no attestation at the moment. It works fine with various services including Facebook, Github etc. However I am facing problems when trying to use it with Google account. 

1) On Google, it seems that registering phase uses older U2F protocol (APDU), while authentication phase uses FIDO2 (CBOR). I don't know why, it's weird.

2) Registering works fine for me, but authentication fails. It seems that the problem is between browser (Firefox) and server (Google), because the first step passes:

And after clicking Next:

If you had any suggestion how to debug this, it would help me a lot.

Thank you!
Jiri


Jiří Bělohradský

unread,
Dec 7, 2020, 4:56:06 AM12/7/20
to FIDO Dev (fido-dev), Jiří Bělohradský
I am sorry - images were not sent. 

Step 1:

Step 2:
Dne pondělí 7. prosince 2020 v 10:45:22 UTC+1 uživatel Jiří Bělohradský napsal:

Nguyen Van Cuong

unread,
Dec 9, 2020, 9:24:13 PM12/9/20
to FIDO Dev (fido-dev), belohrad...@gmail.com

Evgeniy P

unread,
Feb 25, 2021, 6:32:55 AM2/25/21
to FIDO Dev (fido-dev), Nguyen Van Cuong, belohrad...@gmail.com
I have absolutely the same problem but not understand how the solution proposed by Nguyen Van Cuong solve problem? My authentificator  implements U2F/CTAP1 for both registering and authentication, but nevertheless problem remains.
Jir, do you solve the problem?
Thanks for attention.
Evgeniy

четверг, 10 декабря 2020 г. в 05:24:13 UTC+3, Nguyen Van Cuong:

Jiří Bělohradský

unread,
Feb 25, 2021, 2:15:38 PM2/25/21
to Evgeniy P, FIDO Dev (fido-dev), Nguyen Van Cuong
Hi Evgeniy,

I've finally found the solution. You have to reject all CBOR requests with CTAP2_ERR_NO_CREDENTIALS. This is because the credential originally came from CTAP1 registration. You also have to reject all incorrect combination of credentialID - rpIdHash with SW_WRONG_DATA on the authenticate command. When I had done those two steps, Google login has started to work fine.

Hope it will work for you as well.

Jiri

čt 25. 2. 2021 v 12:32 odesílatel Evgeniy P <elvis.p...@gmail.com> napsal:

nuno sung

unread,
Feb 26, 2021, 11:36:36 AM2/26/21
to FIDO Dev (fido-dev), belohrad...@gmail.com, FIDO Dev (fido-dev), Nguyen Van Cuong, Evgeniy P
Some information you may want to know about this.

belohrad...@gmail.com 在 2021年2月26日 星期五上午3:15:38 [UTC+8] 的信中寫道:

Evgeniy P

unread,
Mar 12, 2021, 8:24:34 AM3/12/21
to FIDO Dev (fido-dev), belohrad...@gmail.com, FIDO Dev (fido-dev)
Hi Jiri,

Thank you very much for response, but to speak briefly, in my case first part of your propose don't work.
I can see the sequence of commands from Client to Authenticator and first command after Select Application is CBOR request authenticatorGetInfo (0x04). My application responses in CBOR structure with versions = "U2F_V2" that means I support CTAP1/U2F.
Next command from Client to Authenticator comes in U2F format according FIDO U2F protocol (APDU with U2F_REGISTER or U2F_AUTHENTICATE) and my application responses according protocol.
Last command is Deselect in CBOR format.
If my application reject first CBOR request with CTAP2_ERR_NO_CREDENTIALS, next command from Webauthn Client is Deselect Application. I can't do registration in this case. Maybe I don't clearly understand what you means?

With regards, Evgeniy
четверг, 25 февраля 2021 г. в 22:15:38 UTC+3, belohrad...@gmail.com:
Reply all
Reply to author
Forward
0 new messages