allura.lib.multifactor
- class allura.lib.multifactor.GoogleAuthenticatorFile
Parse & write server-side .google_authenticator files for PAM. https://github.com/google/google-authenticator/blob/master/libpam/FILEFORMAT
- class allura.lib.multifactor.GoogleAuthenticatorPamFilesystemRecoveryCodeService
- class allura.lib.multifactor.GoogleAuthenticatorPamFilesystemTotpService
Store in home directories, compatible with the TOTP PAM module for Google Authenticator https://github.com/google/google-authenticator/tree/master/libpam
- class allura.lib.multifactor.MongodbRecoveryCodeService
- class allura.lib.multifactor.MongodbTotpService
Store in TOTP keys in mongodb.
- class allura.lib.multifactor.RecoveryCodeService
An interface for handling multifactor recovery codes. Common functionality is provided in this base class, and specific subclasses implement different storage options. A provider must implement
get_codes(),replace_codes(), andverify_and_remove_code().To use a new provider, expose an entry point in setup.py:
[allura.multifactor.recovery_code] myrecovery = foo.bar:MyRecoveryCodeService
Then in your .ini file, set
auth.multifactor.recovery_code.service=myrecovery- classmethod get()
- Return type:
- class allura.lib.multifactor.TotpService
An interface for handling multifactor auth TOTP secret keys. Common functionality is provided in this base class, and specific subclasses implement different storage options. A provider must implement
get_secret_key()andset_secret_key()andenforce_rate_limit()To use a new provider, expose an entry point in setup.py:
[allura.multifactor.totp_service] mytotp = foo.bar:MyTotpService
Then in your .ini file, set
auth.multifactor.totp.service=mytotp- classmethod get()
- Return type: