Add OpenILS::WWW::Proxy::Authen Module
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 3 Jan 2012 17:00:47 +0000 (12:00 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 3 Jan 2012 21:55:28 +0000 (16:55 -0500)
commit5bcd792f8f5df7b6e1aa8fe439b98991b10dc9cc
treefc0c4f31e67a2bb1c2a29a2a33153b985f316357
parent1579acb673f1840c9171ea788e4dfa98ce77d54e
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>
Open-ILS/src/perlmods/lib/OpenILS/WWW/Proxy/Authen.pm [new file with mode: 0644]