PAS plugin for adding roles to (anonymous or logged-in) visitors based on HTTP Headers.
Project description
AutoRoleFromHostHeader PAS Plugin
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
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.
Changelog
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
Built Distributions
Hashes for Products.AutoRoleFromHostHeader-0.1.0a.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c9957f6e5f7c2f0455fc354f0c3af6d0b12b0f3520598819ae40cced14e0311 |
|
MD5 | 4963f0efed196f4f84e5c0d3ee948300 |
|
BLAKE2b-256 | c6a9430f7ae0a8b34f7e87ecaeeb1e32539f294dbfb4455bb8b8bc6a75d4144b |
Hashes for Products.AutoRoleFromHostHeader-0.1.0a-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84bd55c9417b2385748da667dc797d62d3bfd97ccd24d84a4ae5f3687eb914a5 |
|
MD5 | ac253c701ba9668e6c4271d5c0364619 |
|
BLAKE2b-256 | 61243ea23c780794fff584ef4fd6dedf0f1d6d3afdabe8e21a7a6d336a49c50d |
Hashes for Products.AutoRoleFromHostHeader-0.1.0a-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1898a160c528f828b51b9adcaa54dcfe72fb884eb606e88c48b977aa31840ee |
|
MD5 | 37480297c89a74dc83bc14bc0d9cff33 |
|
BLAKE2b-256 | 9d7dad6f53cf0704a62b02d0bd5023e923c2b5e4f23cca0444c75e7c5c979869 |