phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
655 stars 451 forks source link

add extension bcmath for 2nd factor authentication #415

Closed yankeguo closed 1 year ago

yankeguo commented 1 year ago

GMP or bcmath is required when second factor authentication is enabled.

yankeguo commented 1 year ago

For more details:

Enabling FIDO2 seems ok, but when login in with FIDO2, an error occured, says 'GMP or bcmath is required`.

williamdes commented 1 year ago

Can you post some logs that shows that it's needed ?

williamdes commented 1 year ago

Maybe this could be related to #416 and #417

yankeguo commented 1 year ago

@williamdes

截屏2023-06-30 11 13 38

截屏2023-06-30 10 53 04

I'm using phpmyadmin:5.2.1 from official docker repository and trying setting up FIDO2/Webauthn 2nd factor authentication with Safari Security Key and Apple iCloud Keychain.

Safari keep prompting for authentication while logging in, and never success, after I cancelled authentication, I found this error message.

I've tried building an image with bcmath installed, and things work again.

P.S.: If you want to reproduce this issue, please note that enabling FIDO2/Webauthn requires SSL to be properly configured.

yankeguo commented 1 year ago

And I see no message in stdout/stderr

yankeguo commented 1 year ago

417 seems to be related, but I'm not sure that fix will restore GMP or bcmath extension

williamdes commented 1 year ago

Okay, thank you for the input. I will have a second try at this

williamdes commented 1 year ago

I pushed the ./update.sh version in 328b498f51d5ba7a9b559de039cd17fde2c6d89f

williamdes commented 1 year ago

Thank you for all the work, it is now deployed to the hub 🎉 : https://hub.docker.com/_/phpmyadmin/tags Ref: https://github.com/docker-library/official-images/pull/14960

ibennetch commented 1 year ago

Thank you for all the work

Yes, thank you.

it is now deployed to the hub

And I will push it to the other Docker repository when I have a chance.

williamdes commented 1 year ago

And I will push it to the other Docker repository when I have a chance.

Thank you

yankeguo commented 1 year ago

Thanks for all 🥳