Catalyst::Authentication::Credential::Crowd - Authenticate a user using Crowd REST Service
use Catalyst qw/ Authentication /; __PACKAGE__->config( authentication => { default_realm => 'crowd', realms => { crowd => { credential => { class => 'Crowd', authen_url => 'http://yourcrowdservice.url/authentication, app => { app_name => 'your_crowd_app_name', password => 'password_for_app_name', } }, ... }, } }); # in controller sub login : Local { my ( $self, $c ) = @_; $c->authenticate( { username => $c->req->param('username'), password => $c->req->param('password') } # ... do something else ... }
Authenticate a user.
Make a HTTP request to Crowd REST Service to authenticate a user.
https://github.com/keerati/Catalyst-Authentication-Credential-Crowd
Keerati Thiwanruk, <keerati.th@gmail.com<gt>
Copyright (C) 2012 by Keerati Thiwanruk
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Authentication::Credential::Crowd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Authentication::Credential::Crowd
CPAN shell
perl -MCPAN -e shell install Catalyst::Authentication::Credential::Crowd
For more information on module installation, please visit the detailed CPAN module installation guide.