Apache::Auth::AuthMemCookie - Apache::Auth::AuthMemCookie documentation


Apache-Auth-AuthMemCookie documentation  | view source Contained in the Apache-Auth-AuthMemCookie distribution.

Index


Apache::Auth::AuthMemCookie - Authenticate using a memcache stored session

Top

Module Usage

  This module is used to take the place of Apache2 authmemcookie primarily for the use
  of integration with simpleSAMLphp L<http://rnd.feide.no/simplesamlphp> .

    Alias /simplesaml /home/piers/git/public/simplesamlphp/www
    perlModule Apache::Auth::AuthMemCookie
    <Location /location_to_protect>
       # get redirected here when not authorised
       ErrorDocument 401 "/simplesaml/authmemcookie.php"
       PerlAuthenHandler Apache::Auth::AuthMemCookie::authen_handler
       PerlSetVar AuthMemCookie "NameOfCookie"
       PerlSetVar AuthMemServers "127.0.0.1:11211, /var/sock/memcached"
       PerlSetVar AuthMemDebug 1 # if you want to debug
       PerlSetVar AuthMemAttrsInHeaders 1 # use headers instead of ENV vars
       AuthType Cookie
       AuthName "My Login"
       Require valid-user
    </Location>


Apache-Auth-AuthMemCookie documentation  | view source Contained in the Apache-Auth-AuthMemCookie distribution.