TFA Migration Module Provides the Path for Migrating Two-factor Authentication (TFA) Module Seed and Settings from Drupal 7 to Drupal 9 and above.

You can also define the private key in settings.php by adding the below config to settings.php in your Drupal 9+ site.

$config['tfa_migration.settings']['drupal7_private_key'] = 'DRUPAL7_PRIVATE_KEY';

Related Issue #3328128: Migration from Drupal 7 to Drupal 9

Features

This Module Provides Path for Migrating TFA Module Seed and Settings from Drupal 7 to Drupal 9 and above.

Installation

Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/895232 for further information.

Post-Installation

Once the module is installed navigate to /admin/config/system/tfa-migration-settings to configure Drupal 7 TFA Private Key

To get Private Key from Drupal 7 use the below command

drush vget drupal_private_key

If Drush is not installed on your site use the guide from https://drupal.stackexchange.com/questions/279004 to get the required key.

You can also run the below SQL Query in your Drupal 7 Database to get the
required key

SELECT name, value FROM variable WHERE name = "drupal_private_key"

Additional Requirements

This Module Requires :

Two-factor Authentication (TFA)
Encrypt

Acknowledgements

I would like to Thank Joe Sutta and Conrad Lara for their initial pointers for this module development.

Project information

Releases