![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Products.AutoRoleFromHostHeader
Advanced tools
Plone PAS plugin for adding roles (or groups) to anonymous or logged-in visitors looking for HTTP Headers.
Add roles or groups to anonymous or logged-in visitors based on HTTP headers
.. contents:: Table of contents
The AutoRoleFromHostHeader PAS plugin allows to assign roles to users looking at HTTP headers.
There is an extraction and authentication plugin included, to enable additional roles for anonymous users. They are required since PAS does not support roles (or properties or groups) for anonymous users. You can disable these interfaces if only logged-in users should get additional roles.
AutoRoleFromHostHeader furthermore provides a groups plugin interface, allowing you to assign groups instead of roles.
The plugin is configured by editing the Header name; regexp; roles/groups
property on the plugin's properties screen (through ZMI).
Each line represents a mapping from an header value (using a regexp match) to
one or more roles. The format is as follows::
http_header_name; regular expression; role[, role ...] ; TALES
The (optional) TALES allows arbitrary expressions to be added to role mappings, for example to check other HTTP headers::
...;python:request.getHeader('MY-SPECIAL-HEADER')=='somevalue'
This plugin can be used to assign groups instead of roles if used as a group plugin instead of a role plugin::
http_header_name; regular expression; group[, group ...] ; TALES
Groups plugin is not activated by default.
If you have AutoRoleFromHostHeader configured for anonymous users and come from a network matching one of its rules, you will not be able to log in with an account from a higher-up user folder. This is because AutoRole authenticates the Anonymous User which stops the lookup process.
Tested with all Plone versions from 4.0 to 4.3.
Developed with the support of:
Azienda USL Ferrara
__
.. image:: http://www.ausl.fe.it/logo_ausl.gif :alt: Azienda USL's logo
Regione Emilia Romagna
__
All of them supports the PloneGov initiative
__.
__ http://www.ausl.fe.it/ __ http://www.regione.emilia-romagna.it/ __ http://www.plonegov.it/
This product was developed by RedTurtle Technology team.
.. image:: http://www.redturtle.it/redturtle_banner.png :alt: RedTurtle Technology Site :target: http://www.redturtle.it/
AutoRoleFromHostHeader is not an original idea but is taken from the work
made by Jarn company for the AutoRole
__ plugin.
Special thanks to Mauro Amico (mamico) for giving us the main direction.
Matthew Wilkes (MatthewWilkes) contributed adding the conditional expression.
__ http://pypi.python.org/pypi/Products.AutoRole
Dropped Plone 3 compatibility
FAQs
Plone PAS plugin for adding roles (or groups) to anonymous or logged-in visitors looking for HTTP Headers.
We found that Products.AutoRoleFromHostHeader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.