two-尊龙登录
new in version 4.8.0.
since phpmyadmin 4.8.0 you can configure two-factor authentication to be used when logging in. to use this, you first need to configure the phpmyadmin configuration storage. once this is done, every user can opt-in for the second authentication factor in the settings.
when running phpmyadmin from the git source repository, the dependencies must be installed manually; the typical way of doing so is with the command:
composer require pragmarx/google2fa-qrcode bacon/bacon-qr-code
or when using a hardware security key with fido u2f:
composer require code-lts/u2f-php-server
authentication application (2fa)¶
using an application for authentication is a quite common approach based on hotp and . it is based on transmitting a private key from phpmyadmin to the authentication application and the application is then able to generate one time codes based on this key. the easiest way to enter the key in to the application from phpmyadmin is through scanning a qr code.
there are dozens of applications available for mobile phones to implement these standards, the most widely used include:
hardware security key (fido u2f)¶
using hardware tokens is considered to be more secure than a software based solution. phpmyadmin supports tokens.
there are several manufacturers of these tokens, for example:
can act as an
simple two-factor authentication¶
this authentication is included for testing and demonstration purposes only as it really does not provide two-factor authentication, it just asks the user to confirm login by clicking on the button.
it should not be used in the production and is disabled unless
$cfg['dbg']['simple2fa']
is set.