]> git.evergreen-ils.org Git - Evergreen.git/commit
Add OpenILS::WWW::Proxy::Authen Module
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 3 Jan 2012 17:00:47 +0000 (12:00 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 4 Jan 2012 16:26:31 +0000 (11:26 -0500)
commit3706bb0514e49ba4f4db51b48cab9aae5524a895
tree15885de903a9a819a1845570537e943f3f743196
parentf9493ae5b5416ff17685b9c8dcc0b813336f0ad8
Add OpenILS::WWW::Proxy::Authen Module

Enables HTTP Basic Authentication access control.

Uses the OILSProxyPermissions and OILSProxyLoginType settings, but prompts
are controlled by the Apache AuthName directive.

This module allows things like Directory Indexing and non-perl or otherwise
incompatible with the normal proxy module Response (or similar) handlers to
be password-protected.

It also supports the OpenILS::WWW::Proxy user/passwd CGI params to allow
an easier transition between the two.

For example:

<Location /authen_login/>
    Options +Indexes
    PerlOptions +GlobalRequest
    PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
    PerlSendHeader On
    AuthType Basic
    AuthName "Notices Login"
    PerlAuthenHandler OpenILS::WWW::Proxy::Authen
    require valid-user
    allow from all
</Location>

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/Proxy/Authen.pm [new file with mode: 0644]