{"id":25176239,"url":"https://github.com/redturtle/products.autorolefromhostheader","last_synced_at":"2025-07-28T16:07:47.549Z","repository":{"id":9890283,"uuid":"11895181","full_name":"RedTurtle/Products.AutoRoleFromHostHeader","owner":"RedTurtle","description":"Plone PAS plugin for adding roles (or groups) to anonymous or logged-in visitors looking for HTTP Headers","archived":false,"fork":false,"pushed_at":"2025-01-08T09:48:29.000Z","size":63,"stargazers_count":1,"open_issues_count":3,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-06T23:24:37.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://plone.org/products/autorolefromhostheader","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTurtle.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-08-05T09:57:23.000Z","updated_at":"2025-01-08T09:48:34.000Z","dependencies_parsed_at":"2025-01-09T00:31:19.801Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/Products.AutoRoleFromHostHeader","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/RedTurtle/Products.AutoRoleFromHostHeader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2FProducts.AutoRoleFromHostHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2FProducts.AutoRoleFromHostHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2FProducts.AutoRoleFromHostHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2FProducts.AutoRoleFromHostHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/Products.AutoRoleFromHostHeader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2FProducts.AutoRoleFromHostHeader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267543275,"owners_count":24104538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T13:16:42.208Z","updated_at":"2025-07-28T16:07:47.522Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Add **roles** or **groups** to anonymous or logged-in visitors based on **HTTP headers**\n\n.. contents:: **Table of contents**\n\nIntroduction\n============\n\nThe AutoRoleFromHostHeader PAS plugin allows to assign roles to users looking\nat HTTP headers.\n\nThere is an extraction and authentication plugin included, to enable\nadditional roles for anonymous users. They are required since PAS does\nnot support roles (or properties or groups) for anonymous users.\nYou can disable these interfaces if only logged-in users should get\nadditional roles.\n\nAutoRoleFromHostHeader furthermore provides a groups plugin interface,\nallowing you to assign groups instead of roles.\n\nConfiguration\n=============\n\nThe plugin is configured by editing the ``Header name; regexp; roles/groups``\nproperty on the plugin's properties screen (through ZMI).\nEach line represents a mapping from an header value (using a regexp match) to\none or more roles. The format is as follows::\n\n    http_header_name; regular expression; role[, role ...] ; TALES\n\nThe (optional) TALES allows arbitrary expressions to be added to role mappings,\nfor example to check other HTTP headers::\n\n    ...;python:request.getHeader('MY-SPECIAL-HEADER')=='somevalue'\n\nAssign groups, not roles\n------------------------\n\nThis plugin can be used to assign groups instead of roles if used as a\n*group plugin* instead of a role plugin::\n\n    http_header_name; regular expression; group[, group ...] ; TALES\n\nGroups plugin is not activated by default.\n\nCaveat\n======\n\nIf you have AutoRoleFromHostHeader configured for anonymous users and come\nfrom a network matching one of its rules, you will **not** be able to log in\nwith an account from a higher-up user folder. This is because AutoRole\nauthenticates the Anonymous User which stops the lookup process.\n\nDependencies\n============\n\nTested with all Plone versions from 4.0 to 4.3.\n\nCredits\n=======\n\nDeveloped with the support of:\n\n* `Azienda USL Ferrara`__\n\n  .. image:: http://www.ausl.fe.it/logo_ausl.gif\n     :alt: Azienda USL's logo\n  \n* `Regione Emilia Romagna`__\n\nAll of them supports the `PloneGov initiative`__.\n\n__ http://www.ausl.fe.it/\n__ http://www.regione.emilia-romagna.it/\n__ http://www.plonegov.it/\n\nAuthors\n=======\n\n* This product was developed by RedTurtle Technology team.\n  \n  .. image:: http://www.redturtle.it/redturtle_banner.png\n     :alt: RedTurtle Technology Site\n     :target: http://www.redturtle.it/\n  \n* AutoRoleFromHostHeader is not an original idea but is taken from the work\n  made by *Jarn company* for the `AutoRole`__ plugin.\n* Special thanks to *Mauro Amico* (mamico) for giving us the main direction.\n* *Matthew Wilkes* (MatthewWilkes) contributed adding the conditional\n  expression.\n\n__ http://pypi.python.org/pypi/Products.AutoRole\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fproducts.autorolefromhostheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Fproducts.autorolefromhostheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Fproducts.autorolefromhostheader/lists"}