MFA Support
(0)
268

MFA Support

FREE

Available versions
Required apps
Web (web)
Technical name
auth_totp
License
LGPL-3
Secure dependencies
N/A
MFA Support

MFA Support

Beta License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runboat

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.

Table of contents

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.

Known issues / Roadmap

  • 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.
  • 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
  • Monkey patch 1 is not needed anymore in Werkzeug==0.13 or upper
  • Monkey patch 2 will work until werkzeug.contrib gets removed.

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 to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • LasLabs

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

This module is part of the OCA/server-auth project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

0.0 / 5.0
based on 0 ratings

Python dependencies

Package Version Secured
Werkzeug 0.16.1
mock 3.0.5
pyotp 2.9.0
This app has automated tests.

Available languages

Language % translated
Italian / Italiano
78%
Portuguese / Português
26%
Croatian / hrvatski jezik
26%
Slovenian / slovenščina
23%
German / Deutsch
23%
Dutch / Nederlands
23%
Dutch / Nederlands
23%
Portuguese (BR) / Português (BR)
23%
Croatian / hrvatski jezik
23%
Chinese (Simplified) / 简体中文
23%
Romanian / română
23%
Arabic / الْعَرَبيّة
23%
Finnish / Suomi
23%
Slovak / Slovenský jazyk
21%
Japanese / 日本語
21%
Hungarian / Magyar
21%
Spanish (VE) / Español (VE)
21%
Turkish / Türkçe
21%
Persian / فارس
21%
Turkish / Türkçe
21%
Spanish (MX) / Español (MX)
21%
Polish / Język polski
21%
Bulgarian / български език
21%
Spanish (AR) / Español (AR)
21%
Bosnian / bosanski jezik
21%
Ukrainian / українська
21%
Spanish / Español
21%
Swedish / Svenska
21%
Hebrew / עִבְרִי
21%
Indonesian / Bahasa Indonesia
21%
Spanish (DO) / Español (DO)
21%
Serbian (Latin) / srpski
21%
Dutch (BE) / Nederlands (BE)
21%
English (UK)
21%
Estonian / Eesti keel
21%
Vietnamese / Tiếng Việt
21%
Spanish (CO) / Español (CO)
21%
Chinese (Traditional) / 繁體中文
21%
Mongolian / монгол
21%
Spanish (EC) / Español (EC)
21%
French (CH) / Français (CH)
21%
Macedonian / македонски јазик
21%
Spanish / Español
21%
Spanish (CL) / Español (CL)
21%
Portuguese / Português
21%
Thai / ภาษาไทย
21%
French (CA) / Français (CA)
19%
Spanish (PE) / Español (PE)
19%
Norwegian Bokmål / Norsk bokmål
19%
Vietnamese / Tiếng Việt
16%
Spanish (CR) / Español (CR)
16%
Russian / русский язык
16%
Spanish (PY) / Español (PY)
16%
Greek / Ελληνικά
16%
Latvian / latviešu valoda
16%
Lithuanian / Lietuvių kalba
14%
Lithuanian / Lietuvių kalba
14%
French / Français
4%
French / Français
4%
English (AU)
2%
Lao / ພາສາລາວ
2%
Galician / Galego
2%
Galician / Galego
2%
Catalan / Català
2%
Hindi / हिंदी
2%