#46300·server

Invalid "login_credentials" with passwordless login

Author: kesselbCreated Jul 4, 2024Updated Sep 29, 2026
Labels0. Needs triagefeature: authenticationtechnical debt

Steps to reproduce:

  • Login with a webauthn device
  • IStore.getLoginCredentials returns an array with a username and an empty password.

Technical debt

Code using getLoginCredentials has to check for null or empty string and also a couple of exceptions^1.

Better: throw PasswordUnavailableException and have a clear way to signal a passwordless login.

Related: https://github.com/nextcloud/server/issues/35878