Passwordless authentication with Yubikey doesn't work
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Steps to reproduce
- Add a yubikey to your passwordless options for your account (make sure its your only passwordless option)
- Open the nextcloud app and type your server address
- Go to login with a device
- Type your username and press Enter
- Nothing happens
Expected behaviour
When logging in, it should asks for my Yubikey with an iOS popup. Since its a NFC Yubikey, you shoud approach it from your phone and it will logs in to your account automatically.
Actual behaviour
Nothing happens after trying to log in.
Screenshots
Screenshot isn't needed, it doesn't show any error messages or loading screens.
Logs
today at 22:31:48 #IP# - - [11/Sep/2022:20:31:48 +0000] "POST /login/webauthn/start HTTP/1.1" 200 1014 "-" "iPhone (Nextcloud iOS)"
today at 22:31:48 #IP# - - [11/Sep/2022:20:31:48 +0000] "POST /login/webauthn/finish HTTP/1.1" 500 5704 "-" "iPhone (Nextcloud iOS)"
Reasoning or why should it be changed/implemented?
When using Safari, everything works as expected and the Yubikey NFC works with Nextcloud. It should acts the same for the iOS app.
Environment data
iOS version: iOS 16.0 Beta
Nextcloud iOS app version: 4.4.3.0
Server operating system: Docker
Web server: Apache, nginx
Database:
PHP version:
Nextcloud version: 24.0.5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the iOS app's “login with a device” flow with a single NFC YubiKey option, then inspect the POST requests to /login/webauthn/start and /login/webauthn/finish alongside the supplied logs. Compare the app flow with Safari, and consider the issue done when the iOS app presents the expected YubiKey NFC prompt and completes login.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100