Kjetil Kjernsmo > AxKit-App-TABOO-0.52 > AxKit::App::TABOO::Handler::Login

Download:
AxKit-App-TABOO-0.52.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

AxKit::App::TABOO::Handler::Login - Straight mod_perl handler to authenticate a user in TABOO

SYNOPSIS ^

  # in httpd.conf
    PerlModule AxKit::App::TABOO::Handler::Login
  <Location /login>
     SetHandler perl-script
     PerlHandler AxKit::App::TABOO::Handler::Login
     PerlSendHeader On
  </Location>

  PerlSetVar TABOODataStore DB_File
  PerlSetVar TABOOArgs      "FileName => /tmp/taboodemo-session"

DESCRIPTION ^

This is a straight mod_perl handler to do the authentication in TABOO. It has come into being after having struggled with Apache::AxKit::Plugin::Session and AxKit::XSP::BasicSession and will simply give the user a cookie if the password matches, and set the username and the authorisation level in the session. Not my preferred way of doing things, but it shall have to do for now.

The session datastore uses Session and can be configured like that module, see the above example.

TODO ^

This does something as atrocious as returning a HTML document directly. I tried returning something to transform with XSLT, but will have to find a better solution. I tried with an AxKit Provider too, but that segfaulted on me.

I'd really like to get Apache::AxKit::Plugin::Session going.

SEE ALSO ^

AxKit::App::TABOO::AddXSLParams::Session

FORMALITIES ^

See AxKit::App::TABOO.

syntax highlighting: