Assign roles via HTTP Header

auth_from_http_remote_user_role
REPOSITORY
REPOSITORYOCA/server-auth
GIT
GIThttps://github.com/OCA/server-auth.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-auth/tree/11.0/auth_from_http_remote_user_role
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSGuewen Baconnier, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/server-auth
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-auth:
    - auth_from_http_remote_user
OCA/server-backend:
    - base_user_role
odoo/odoo:
    - base
    - web
    - base_setup
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_res_users_role_form_http_auth view.res.users.role.form.http.auth res.users.role field Inherits base_user_role.view_res_users_role_form
view_res_users_role_tree_http_auth view.res.users.role.tree.http.auth res.users.role field Inherits base_user_role.view_res_users_role_tree
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • last_http_header_roles Char
    string='Last HTTP header roles'
Public methods (0)

No public methods.

New fields (1)
  • user_role_code Char
    string='HTTP header code'
Public methods (1)
  • change_roles_remote_user(self, env, user_id, new_roles)
    @api.model
    Change the roles of the user with id user_id