Skip to main content

Allows users to enable MFA and add optional trusted devices

Project description

License: LGPL-3

MFA Support via TOTP

This module adds support for MFA using TOTP (time-based, one-time passwords). It allows users to enable/disable MFA and manage authentication apps/devices via the “Change My Preferences” view and an associated wizard.

After logging in normally, users with MFA enabled are taken to a second screen where they have to enter a password generated by one of their authentication apps and are presented with the option to remember the current device. This creates a secure, HTTP-only cookie that allows subsequent logins to bypass the MFA step.

Installation

  1. Install the PyOTP library using pip: pip install pyotp

  2. Follow the standard module install process

Configuration

By default, the trusted device cookies introduced by this module have a Secure flag. This decreases the likelihood of cookie theft via eavesdropping but may result in cookies not being set by certain browsers unless your Odoo instance uses HTTPS. If necessary, you can disable this flag by going to Settings > Parameters > System Parameters and changing the auth_totp.secure_cookie key to 0.

Usage

If necessary, a user’s trusted devices can be revoked by disabling and re-enabling MFA for that user.

Try me on Runbot

Known Issues / Roadmap

Known Issues

  • External calls to the Odoo XML-RPC API are blocked for users who enable MFA since there is currently no way to perform MFA authentication as part of this process. However, due to the way that Odoo handles authentication caching, multi-threaded or multi-process servers will need to be restarted before the block can take effect for users who have just enabled MFA.

Roadmap

  • Make the lifetime of the trusted device cookie configurable rather than fixed at 30 days

  • Add device fingerprinting to the trusted device cookie

  • Add company-level settings for forcing all users to enable MFA and disabling the trusted device option

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo10_addon_auth_totp-10.0.2.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo10_addon_auth_totp-10.0.2.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b0223095b9d226c6fb71ca691d167a140776053dae54a917e5563572dcfd28ee
MD5 72feea53ed57844121a3b453072f0afa
BLAKE2b-256 b012422974ce1693c9ba3d53a9dd83c17842b3ebbc67a0311e03b803166afd09

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page