Steps to replicate the issue (include links if applicable):
- Use Webauthn as 2FA
- Attempt login
What happens?:
WebAuthn authentication failed due to: MediaWiki\\Extension\\OATHAuth\\Key\\WebAuthnKey::findOneByCredentialId(): Return value must be of type ?Webauthn\\PublicKeyCredentialSource, Webauthn\\CredentialRecord returned
What should have happened instead?:
Login is successful.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.46.0-beta (9be2edf)
OATHAuth (REL1_46, 163737a)
web-auth/webauthn-lib 5.3.2
Other information (browser name/version, screenshots, etc.):
This is caused by a change in upstream >=5.3.0 and can be fixed by backporting the change https://gerrit.wikimedia.org/r/1282425, or limiting the lib's version to <5.3.0 where not possible.