Reduce duplicate directives in config

Bug #531377 reported by Szilveszter Farkas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apache OpenID
New
Undecided
Unassigned

Bug Description

Currently you need to specify most of the directives in both Location blocks, if you have a separate action-path set.

Example:

<Location "/">
    PythonAccessHandler apache_openid::protect
    PythonOption action-path "/openid/"
    PythonOption handler "openidteams"
    PythonOption store-type file
    PythonOption store-directory /tmp/apache-openid/
    PythonOption allowed-op-list-url "file:///etc/apache2/openid/allowed-ops.txt"
    PythonOption authorized-teams-list-url "file:///etc/apache2/openid/teams.txt"
</Location>

<Location "/openid/">
    SetHandler mod_python
    PythonHandler apache_openid::protect
    PythonOption action-path "/openid/"
    PythonOption handler "openidteams"
    PythonOption store-type file
    PythonOption store-directory /tmp/apache-openid/
    PythonOption allowed-op-list-url "file:///etc/apache2/security/allowed-ops.txt"
    PythonOption authorized-teams-list-url "file:///etc/apache2/openid/teams.txt"
</Location>

A possible solution: store the config in a separate file (e.g. INI-style), and point only to that file from the Location blocks.

We also need to look into cases where each Location allows different teams.

description: updated
Changed in apache-openid:
milestone: none → 2.1.0
Changed in apache-openid:
milestone: 2.1.0 → 2.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.