Skip to main content

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.

Azienda USL's logo

Authors

  • This product was developed by RedTurtle Technology team.

    RedTurtle Technology Site
  • 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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Products.AutoRoleFromHostHeader-0.2.0.tar.gz (15.9 kB view details)

Uploaded Source

File details

Details for the file Products.AutoRoleFromHostHeader-0.2.0.tar.gz.

File metadata

File hashes

Hashes for Products.AutoRoleFromHostHeader-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aa1ce4dd299b17f53c03326e8083d3d7baec2caf482826ec1bbb93f1bb15e423
MD5 fc5109c638ce65533ed9687707347461
BLAKE2b-256 c1b81757ce1c6e07a5dddab24b4dc9362b5e5ba98593a5f46321f110132c0c0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page