NAME
OAuth::Lite::Problems - constants for OAuth Problem Reporting Extension
SYNOPSIS
use OAuth::Problems qw(:all);
$server->error( TOKEN_REJECTED );
DESCRIPTION
This provides constants which used in OAuth Problem Reporting spec.
METHODS
match($error)
my $error = 'token_rejected';
if (OAuth::Lite::Problems->match($error)) {
say "This error is OAuth Problem";
$server->error(sprintf "oauth_problem=%s", $error);
}
SEE ALSO
http://oauth.pbwiki.com/ProblemReporting
AUTHOR
Lyo Kato, lyo.kato _at_ gmail.com
COPYRIGHT AND LICENSE
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.