Apache Authentication - ApacheCon 2005
PerlAuthenHandler example
  • Returns AUTH_REQUIRED or OK

    http://perl.apache.org/docs/1.0/guide/security.html
  • Note that username, password, can also be supplied via other means, like an HTML form, or from a cookie.

  • Or, if from a standard auth dialog:

    
     my($status, $sent_pw) = $r->get_basic_auth_pw;
     my $user = $r->connection->user;
    
      

  • Your auth handler is called each time there is an access

  • If getting auth from elsewhere, you should set $r-connection->user to the username value

Index
Back to PerlAuthenHandler
Forward to PerlAuthzHandler

ApacheCon 2005 : Apache Authentication - Slide #36 of 45