Availability |
Odoo Online
Odoo.sh
On Premise
|
Community Apps Dependencies | Show |
Lines of code | 682 |
Technical Name |
auth_basic |
License | LGPL-3 |
Website | https://timefordev.com |
Basic HTTP Authentication
Add Basic HTTP Authentication method where username:password
is encoded in base64 format.
Authentication expects this kind of header: AUTHORIZATION: Basic [b64]
, which is RFC 7617 standard.
This method was inspired by module auth_api_key
.
NOTE. When creating Basic Auth records, make sure username/password pair is unique to not make it possible to find multiple records with same credentials.
Constraint can't be added, because username
and password
values are also allowed to be retrieved from server environment.
Configuration
To use this type of authentication, with admin user (debug mode enabled), go to Settings / Technical / Authentication / Basic
. Create new record, specifying its Name
(unique identifier), User
(Odoo user that will be actually authorized access. User must have admin access) Username
and Password
.
If you want to take credentials from server environment, Username
and Password
can be left empty. Check server_environment
module for details how it works.
Contributors
- Andrius Laukavičius (timefordev)
Please log in to comment on this module