CatalystX::OAuth2::Provider -
package MyApp; use Moose; use namespace::autoclean; use Catalyst qw/ +CatalystX::OAuth2::Provider Authentication Session Session::Store::File Session::State::Cookie Session::State::URI Session::State::Auth /; extends 'Catalyst'; __PACKAGE__->config( 'Plugin::Authentication' => { # Auth config here } ); __PACKAGE__->config( 'Plugin::Session' => { param => 'code', rewrite_body => 0 }, #Handle authorization code ); __PACKAGE__->config( 'Controller::OAuth' => { login_form => { template => 'user/login.tt', field_names => { username => 'mail', password => 'userPassword' } }, authorize_form => { template => 'oauth/authorize.tt', }, auth_info => { client_1 => { client_id => q{THIS_IS_ID}, client_secret => q{THIS_IS_SECRET}, redirect_uri => q{CLIENT_REDIRECT_URI}, }, }, protected_resource => { secret_key => 'secret', } } );
CatalystX::OAuth2::Provider is an application class provides a OAuth2 Provider in only your Catalyst application configuration.
zdk (Warachet Samtalee)
Copyright 2011 the above author(s).
This sofware is free software, and is licensed under the same terms as perl itself.
To install CatalystX::OAuth2::Provider, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::OAuth2::Provider
CPAN shell
perl -MCPAN -e shell install CatalystX::OAuth2::Provider
For more information on module installation, please visit the detailed CPAN module installation guide.