MFA Support
auth_totp · OCA/server-auth
OCA/server-tools 8.0–10.0 → OCA/server-auth 11.0–12.0 → odoo/odoo 14.0–20.0
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 83 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.72 MB
Module directory on disk
Code analysis
4 migration notes
3 models
4 views
3 HTTP endpoints
Migration considerations
ResUsers— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceResUsersAuthenticator— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceResUsersAuthenticator— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceResUsersAuthenticatorCreate— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- pyotp
- System dependencies
- None
- Required by
- auth_totp_password_security
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mfa_login |
MFA Login Page | ir.ui.view | qweb | New |
res_users_authenticator_create_view_form |
MFA App/Device Creation Wizard | res.users.authenticator.create | form | New |
view_users_form |
User Form - MFA Settings | res.users | form | Inherits base.view_users_form |
view_users_form_simple_modif |
Change My Preferences - MFA Settings | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints 3
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/auth_totp/login |
AuthTotp.mfa_login_get |
public | http | GET | website |
/auth_totp/login |
AuthTotp.mfa_login_post |
none | http | POST | sudo |
| (inherited route override) | AuthTotp.web_login |
inherited | http | ALL |
Models touched 3
New fields (3)
-
authenticator_idsOne2many → res.users.authenticatorcomodel_name='res.users.authenticator'help='To delete an authentication app, remove it from this list. To add a new authentication app, please use the button to the right. If the button is not present, you do not have the permissions to do this.'inverse_name='user_id'string='Authentication Apps/Devices' -
mfa_enabledBooleanstring='MFA Enabled?' -
trusted_device_cookie_keyCharcompute='_compute_trusted_device_cookie_key'store=True
-
check(cls, db, uid, password)@classmethodPrevent auth caching for MFA users without active MFA session -
validate_mfa_confirmation_code(self, confirmation_code)@api.multi
New fields (3)
-
nameCharreadonly=Truerequired=True -
secret_keyCharreadonly=Truerequired=True -
user_idMany2one → res.userscomodel_name='res.users'ondelete='cascade'
-
validate_conf_code(self, confirmation_code)@api.multi
New fields (6)
-
confirmation_codeCharhelp='Enter the latest six digit code generated by your authentication app'required=Truestring='Confirmation Code' -
nameCharhelp='A name that will help you remember this authentication app/device'required=Truestring='Authentication App/Device Name' -
qr_code_tagHtmlcompute='_compute_qr_code_tag'help='Scan this image with your authentication app to add your account'string='QR Code' -
secret_keyChardefault=<expr>required=Truestring='Secret Code' -
secret_key_displayCharcompute='_compute_secret_key_display'readonly=Truestore=Falsestring='Secret Code' -
user_idMany2one → res.userscomodel_name='res.users'default=<expr>help='This is the user whose account the new authentication app/device will be tied to'ondelete='cascade'readonly=Truerequired=Truestring='Associated User'
-
action_create(self)@api.multi
Loading…
Loading…
Loading…
Loading…