Plone PAS plugin for adding roles to (anonymous or logged-in) visitors based on HTTP Headers.
Project description
Add roles to (anonymous or logged-in) visitors based on browser HTTP header
Introduction
The AutoRoleFromHostHeader plugin allows to assign roles to users looking at client 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.
Configuration
The plugin is configured by editing the Header name, regexp and roles property on the plugin’s Properties screen. 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 ...]
Caveat
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.
Credits
Developed with the support of Azienda USL Ferrara; Azienda USL Ferrara supports the PloneGov initiative.
Changelog
0.2.0 (2010-10-04)
Fixed project URL on plone.org [keul]
Added plugin icon [keul]
Fixed broken tests [keul]
Added z3c.autoinclude support [keul]
0.1.0a (2010-03-24)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Products.AutoRoleFromHostHeader-0.2.0.tar.gz
.
File metadata
- Download URL: Products.AutoRoleFromHostHeader-0.2.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1ce4dd299b17f53c03326e8083d3d7baec2caf482826ec1bbb93f1bb15e423 |
|
MD5 | fc5109c638ce65533ed9687707347461 |
|
BLAKE2b-256 | c1b81757ce1c6e07a5dddab24b4dc9362b5e5ba98593a5f46321f110132c0c0b |