Zbigniew Łukasiak > Catalyst-Example-InstantCRUD > Catalyst::Plugin::Auth::Utils

Download:
Catalyst-Example-InstantCRUD-0.035.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View Bugs
Report a bug
Module Version: 0.01   Source  

NAME ^

Catalyst::Plugin::Auth::Utils - Methods and actions to simplify authentication

SYNOPSIS ^

    use Catalyst qw/
        HTML::Widget
        Authentication
        Authentication::Store::DBIC
        Authentication::Credential::Password
        Auth::Utils
    /;

    # in your Controller::Root.pm

    sub auto : ActionClass('Auth::Check') {
        $_[1]->stash->{login_action} = 'login';
    } 

    sub login : Local : ActionClass('Auth::Login') {}
    
    sub logout : Local : ActionClass('Auth::Logout') {}

DESCRIPTION ^

Methods and actions to simplify authentication

METHODS ^

$c->login_widget()

Returns a HTML::Widget object filled with login and password fields to be used in login forms.

$c->redirect_to_login_unless_user_exists()

This method redirects to the login action unless an authenticated user is found

SEE ALSO ^

Catalyst, HTML::Widget, Catalyst::Plugin::HTML::Widget

AUTHOR ^

Zbigniew Lukasiak> zz bb yy @ gmail.com

Jonas Alves, jonas.alves at gmail.com

LICENSE ^

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.