OAuth::Lite::Problems - constants for OAuth Problem Reporting Extension
use OAuth::Problems qw(:all); $server->error( TOKEN_REJECTED );
This provides constants which used in OAuth Problem Reporting spec.
my $error = 'token_rejected'; if (OAuth::Lite::Problems->match($error)) { say "This error is OAuth Problem"; $server->error(sprintf "oauth_problem=%s", $error); }
http://oauth.pbworks.com/ProblemReporting
Lyo Kato, lyo.kato _at_ gmail.com
lyo.kato _at_ gmail.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install OAuth::Lite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OAuth::Lite
CPAN shell
perl -MCPAN -e shell install OAuth::Lite
For more information on module installation, please visit the detailed CPAN module installation guide.