OAuth::Lite::AuthMethod - auth method constants.


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

Index


NAME

Top

OAuth::Lite::AuthMethod - auth method constants.

SYNOPSIS

Top

    use OAuth::Lite::AuthMethod qw(
        AUTH_HEADER
        POST_BODY
        URL_QUERY
    );

    $consumer = OAuth::Lite::Consumer->new(
        ...
        auth_method => URL_QUERY,
    );

DESCRIPTION

Top

This mere holds constants for auth method on requesting with OAuth.

CONSTANTS

Top

AUTH_HEADER

Using Authorization header for OAuth-authentication.

    Authorization: OAuth realm="http://example.org", oauth_consuemr_key="key", ...

POST_BODY

Embed OAuth authentication data into request body.

URL_QUERY

Append OAuth authentication data as query-string.

METHODS

Top

validate_method($method)

    unless ( OAuth::Lite::AuthMethod->validate_method($method) ) {
        say 'Invalid auth method.';
    }

AUTHOR

Top

Lyo Kato, lyo.kato _at_ gmail.com

COPYRIGHT AND LICENSE

Top


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