Assign roles via HTTP Header

Assign roles found in the HTTP header, to the connected user

Technical Name:
auth_from_http_remote_user_role
Version:
11.0
License:
Author:
Camptocamp
https://odoo-community.org/web/image/product.template/4817/image_1920?unique=cbd17ca
  • Odoo Version

Terms and Conditions 

License: AGPL-3

User Role From HTTP Header

This module extends the functionality of auth_from_http_remote_user as well as base_user_role. It gives the possibility when the authentication of the remote user has been successful, to assign roles to the new authenticated user, based on the content of the HTTP header field HTTP_REMOTE_ROLE.

Installation

Install this module like any other module.

Configuration

When the module auth_from_http_remote_user is installed and working. You need to tweak the HTTP header the same way by adding a field HTTP_REMOTE_ROLE. This field must contain the codes referencing the pre defined user roles that will be assigned to the user. It can contain multiple codes separated by a comma.

Those codes can be assigned to preconfigured user roles directly on ther edition page.

Usage

Try me on Runbot :

Known issues / Roadmap

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

Credits

Images

  • Odoo Community Association: Icon.

Contributors

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

Maintainer

Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.

This is a preview of the recently viewed products by the user.
Once the user has seen at least one product this snippet will be visible.

Recently viewed Products