U2f with FIDO2 token nextcloud 26 php 8.2

Hello,
I just migrated to nextcloud 26 and php 8.2 without issues but the FIDO2 authentication stop working. I had several usb tokens configured and now that option of configuration just dissapeared and only can log with the one time passwords generated long ago. When I try to install a u2f app from the store I only see one webauth app that refuses instalation I think due to php version. The only possible option I see is a TOTP app but I would prefer the token option that (in my installation) has just dissapeared. Is it possible to configure again the usb tokens?

Thanks for your attention!

The U2F app was deprecated quite some time ago, and it was replaced by Two-Factor WebAuthn.

Yes, I knew that. The issue is that when I try to install the Two-Factor WebAuthn I get an error about gmp library. I am using php 8.2 and after install php8.2-gmp I keep on receiving the same error.

Maybe more installations are needed

Hmm, not sure then. I just installed the app on a test instance with PHP 8.2 and it worked right away with a Yubikey 5 NFC.

Here are the PHP packages / modules that I have installed / are enabled on that instance, maybe it is of any help.

libapache2-mod-php8.2/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php-common/bullseye,now 2:93+0~20221211.45+debian11~1.gbpdb4dcc all [installed]
php8.2-apcu/bullseye,now 5.1.22+4.0.11-2+0~20221209.34+debian11~1.gbp2b07cb amd64 [installed]
php8.2-bcmath/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-bz2/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-cli/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-common/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-curl/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-fpm/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-gd/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-gmp/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-igbinary/bullseye,now 3.2.13-1+0~20230207.37+debian11~1.gbp76ad09 amd64 [installed]
php8.2-imagick/bullseye,now 3.7.0-3+0~20221209.38+debian11~1.gbp8a8977 amd64 [installed]
php8.2-intl/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-ldap/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-mbstring/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-mysql/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-opcache/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-readline/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-redis/bullseye,now 5.3.7+4.3.0-2+0~20221210.45+debian11~1.gbp99917f amd64 [installed]
php8.2-smbclient/bullseye,now 1.0.6-7+0~20221209.23+debian11~1.gbp55ccdd amd64 [installed]
php8.2-xml/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
php8.2-zip/bullseye,now 8.2.4-1+0~20230316.17+debian11~1.gbp556b04 amd64 [installed]
[PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
ldap
libsmbclient
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
smbclient
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcach

Thank you for your help. This evening I will check it all.

Problem fixed, probably because a server reset I have done. Apparently after install GMP package a reset was needed.

2 Likes