Apache authorization handler for PlugAuth
In your httpd.conf:
<Location /protected>
PerlAuthenHandler PlugAuth::Client::Tiny::Apache2AuthenHandler
PerlAuthzHandler PlugAuth::Client::Tiny::Apache2AuthzHandler
AuthType Basic
AuthName "My Protected Documents"
Require valid-user
PerlSetEnv PLUGAUTH_URL http://localhost:3001
</Location>
This module provides PlugAuth authentication (via PlugAuth::Tiny) for your legacy Apache2 application.
PerlSetEnv PLUGAUTH_URL http://localhost:3001
Specifies the URL for the PlugAuth server to authenticate against.
PerlSetEnv PLUGAUTH_PREFIX /myprefix
Specifies a prefix for resource authorization requests. What that means is that
if you set PLUGAUTH_PREFIX
to /myprefix
as above, then when a client requests
a path such as /myrequestpath
the authentication request to PlugAuth will be
for the resource /myprefix/myrequestpath
.
-
PlugAuth::Client::Tiny::Apache2AuthenHandler
For authentication.
-
Server to authenticate against.
-
Simplified PlugAuth client.
-
For testing
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2015 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.