Configure Drupal Two-factor Authentication ( Hardware Token / Yubikey )

Configure Drupal Two-factor Authentication ( Hardware Token / Yubikey )

Setup Hardware Token / YubiKey with Drupal module. This guide will help you to configure Hardware Token / YubiKey as Two Factor Authentication( 2FA ) method for Drupal site. Drupal 2FA module will add a second layer of authentication to your Drupal account to increase the security of your site from unwanted hacks and unauthorized login attempts.

The Google Authenticator / 2 Factor Authentication – 2FA module is available for Drupal 7, Drupal 8 and Drupal 9. The upcoming major Drupal releases i.e. Drupal 10 will also be supported.

If you have any doubts or queries, you can contact us at We will help you to configure the module. If you want, we can also schedule an online meeting to help you configure the Drupal 2FA ( Two-Factor Authentication ) module

Step 1: Install miniOrange 2-Factor authentication module

  • Download miniOrange Drupal 2FA Module.
  • On your Drupal admin console go to Extend/Modules Install new module.
  • Drupal 2FA install new module
  • Browse and choose the downloaded zip then click on Install button.
  • Drupal 2FA upload module file
  • Click on Enable newly added modules link.
  • Drupal 2FA enable new module
  • Scroll down till you find miniOrange Two-Factor Authentication. Click on the checkbox next to it and click on the Install button to enable the module.
  • Drupal 2FA install
  • Now click on Configuration option from the top nevigation bar and select miniOrange Second Factor Authentication.
  • Drupal 2FA configure module

Step 2: Configure Hardware token 2FA method

  • Register/Login with miniOrange.
  • Drupal 2FA registration
  • Navigate to Setup Two-Factor tab. Select Yubikey Hardware Token and click on the Configure link.
  • Drupal 2FA select Hardware Token method
  • Follow the Instructions mentioned on the screen.
  • Drupal 2FA Follow this steps
  • You have successfully Configured Yubikey Hardware Token 2FA method.
  • Drupal 2FA Successfully Configured Hardware Token method

Step 3: Try login using miniOrange 2-Factor module ( Yubikey Hardware Token )

  • Once you complete the Yubikey Hardware Token setup, open a new browser/private window, and login into your Drupal site. You will be asked to authenticate your identity using the Yubikey Hardware Token ( 2FA ) method.

Your choice of second factor

miniOrange 2-factor module is extendable to use any of the following auth methods. If you want to have any other 2-factor for your Drupal site, Contact Us.

If you don't find what you are looking for, please contact us at or call us at +1 978 658 9387 to find an answer to your question about Drupal Two Factor Authetication.

Hello there!

Need Help? We are right here!

Contact miniOrange Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to