2nd factor authentication via U2F
auth_u2f · OCA/server-auth
Health
39/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 48 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.1 MB
Module directory on disk
Code analysis
4 migration notes
3 models
7 views
2 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 · sourceU2FDevice— 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 · sourceu2f_device_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceu2f_device_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
- u2flib_server
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
U2F Assets | ir.ui.view | qweb | Inherits web.assets_backend |
assets_frontend |
U2F Assets | ir.ui.view | qweb | Inherits web.assets_frontend |
login |
Register U2F page | ir.ui.view | qweb | New |
u2f_device_form |
u2f.device.form | u2f.device | form | New |
u2f_device_tree |
u2f.device.tree | u2f.device | tree | New |
view_users_form_inherit_auth_u2f |
res.users.form.inherit | res.users | form | Inherits base.view_users_form |
view_users_form_simple_modif_inherit_auth_u2f |
res.users.preferences.form | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/web/u2f/login |
AuthU2FController.u2f_login |
none | http | ALL | sudo |
| (inherited route override) | U2FLogin.web_client |
inherited | http | ALL |
Models touched 3
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
u2f_device_idsOne2many → u2f.devicestring='U2F devices' args: 'u2f.device', 'user_id'
-
u2f_check_credentials(self, last_challenge, last_response)@api.multi -
u2f_get_registration_challenge(self)@api.model
New fields (4)
-
defaultBooleanhelp='Device used during login.'readonly=True -
jsonCharhelp='Technical data returned by u2flib or the browser'required=Truestring='Scan' -
nameCharrequired=True -
user_idMany2one → res.usersdefault=<expr>readonly=Truerequired=True args: 'res.users'
-
action_make_default(self)@api.multi -
create(self, vals)@api.model
Loading…