Tables

AuthenticatorSecret

This is required by AuthenticatorProvider.

To create this table, you can using Piccolo’s migrations.

Add piccolo_api.mfa.authenticator.piccolo_app to APP_REGISTRY in piccolo_conf.py:

APP_REGISTRY = AppRegistry(
    apps=[
        "piccolo_api.mfa.authenticator.piccolo_app",
        ...
    ]
)

Then run the migrations:

piccolo migrations forwards mfa_authenticator

Alternatively, if not using Piccolo migrations, you can create the table manually:

>>> from piccolo_api.mfa.authenticator.table import AuthenticatorProvider
>>> AuthenticatorProvider.create_table().run_sync()