OAuth::Lite::Problems - constants for OAuth Problem Reporting Extension


OAuth-Lite documentation  | view source Contained in the OAuth-Lite distribution.

Index


NAME

Top

OAuth::Lite::Problems - constants for OAuth Problem Reporting Extension

SYNOPSIS

Top

    use OAuth::Problems qw(:all);

    $server->error( TOKEN_REJECTED );

DESCRIPTION

Top

This provides constants which used in OAuth Problem Reporting spec.

METHODS

Top

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);
    }

CONSTANTS

Top

VERSION_REJECTED =head2 PARAMETER_ABSENT =head2 PARAMETER_REJECTED =head2 TIMESTAMP_REFUSED =head2 NONCE_USED =head2 SIGNATURE_METHOD_REJECTED =head2 SIGNATURE_INVALID =head2 CONSUMER_KEY_UNKNOWN =head2 CONSUMER_KEY_REJECTED =head2 CONSUMER_KEY_REFUSED =head2 TOKEN_USED =head2 TOKEN_EXPIRED =head2 TOKEN_REVOKED =head2 TOKEN_REJECTED =head2 ADDITIONAL_AUTHORIZATION_REQUIRED =head2 PERMISSION_UNKNOWN =head2 PERMISSION_DENIED =head2 USER_REFUSED

SEE ALSO

Top

http://oauth.pbworks.com/ProblemReporting

AUTHOR

Top

Lyo Kato, lyo.kato _at_ gmail.com

COPYRIGHT AND LICENSE

Top


OAuth-Lite documentation  | view source Contained in the OAuth-Lite distribution.