Ticket #946 (closed Enhancement: fixed)
Fine granular request filter
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.8 |
Component: | DeepaMehta Standard Distribution | Version: | 4.7 |
Keywords: | Cc: | dgf, Malte, JuergeN | |
Complexity: | 3 | Area: | |
Module: | deepamehta-accesscontrol |
Description
Currently the request filter -- in terms of the dm4.security.[read|write]_requires_login settings -- is "all or nothing", that is true or false. The filter should be more granular on the basis of request URI prefixes.
Example:
dm4.security.allow_anonymous_read = /eu.crowd-literature/, /crowd/ dm4.security.allow_anonymous_write = NONE
In this example the CROWD frontend (that is its REST API and its static resources) would be available for anonymous users while all the DM standard services (/core, /workspaces, ...) -- and thus the DM Webclient -- would not. (In this example the CROWD module is expected to depend solely on its own service and resources.)
The DM Standard Distro's default settings would look likes this:
dm4.security.allow_anonymous_read = ALL dm4.security.allow_anonymous_write = NONE
This ticket proposes the replacement of the dm4.security.[read|write]_requires_login settings by dm4.security.allow_anonymous_[read|write] settings.