Open rajil opened 1 year ago
This looks like a server error. Can you login successfully on the same server, with the same hardware key, but on a desktop browser?
Yes, the key works fine on the desktop with firefox Also, I tried with chrome on mobile and that worked too.
On Tue, Dec 20, 2022, 4:00 PM Álvaro Brey @.***> wrote:
This looks like a server error. Can you login successfully on the same server, with the same hardware key, but on a desktop browser?
— Reply to this email directly, view it on GitHub https://github.com/nextcloud/android/issues/11177#issuecomment-1359147701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC4TATG7OBOX5JZ6FYU7V3WOGDC3ANCNFSM6AAAAAATBYSQVY . You are receiving this because you authored the thread.Message ID: @.***>
Hm, can you see if you have any updates for your system webview? Though I wouldn't think this would fix it, but just in case.
@tobiasKaminsky yet another +1 for #1723
"login with a device" is passwordless authentication. If you want to use real 2fa, then during login you first need to enter username/password (first factor) and then confirm via yubikey (second factor).
Can you remove "passwordless auth" and test it again?
I disabled 'Passwordless Authentication' on the server and tried the mobile app again. I still got the same error of wrong security key,
@ChristophWurst as you are master of 2fa. Can you shed some light on this, what and how causes this error message?
I have never seen that error. Can someone try to figure out where it's coming from?
@rajil one or more screenshots would be great.
Ahh. It is from: https://github.com/nextcloud-deps/hwsecurity/blob/master/hwsecurity/ui/src/main/res/values/strings.xml#L38
So it is entirely on Android.
Still the question remains, how this can happen…
@tobiasKaminsky yet another +1 for #1723
Yes, switching to login flow v2, where auth is done in browser is best way.
So it is entirely on Android.
Looks like it's caused by either a wrong request or a server error, see the server log in the first post
Return type of Webauthn\\AuthenticationExtensions\\AuthenticationExtension::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/lib/nextcloud/apps/twofactor_webauthn/vendor/web-auth/webauthn-lib/src/AuthenticationExtensions/AuthenticationExtension.php#55"
That is a deprecation warning, not an error. You can safely ignore it.
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
I faced this issue myself recently, and was able to resolve it by logging into the web interface and re-adding the YubiKey I was using. Strange that I was able to login to the browser's end fine with the previous one though.
⚠️ Before posting ⚠️
Steps to reproduce
Expected behaviour
Android should login
Actual behaviour
Android mobile says 'Wrong Security Key is used' and does not login
Android version
10
Device brand and model
Samsung SM-N960F
Stock or custom OS?
Stock
Nextcloud android app version
3.23.0
Nextcloud server version
25.0.2.3
Using a reverse proxy?
Yes
Android logs
No response
Server error logs
Additional information
Default browser on mobile is Firefox version 108.1.0