The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Auth::OAuth - OAuth signature validation middleware

SYNOPSIS

  use Plack::Builder;

  my $app = sub { ...};

  builder {
      enable "Plack::Middleware::Auth::OAuth",
          consumer_key => 'YOUR_CONSUMER_KEY',
          consumer_secret => 'YOUR_CONSUMER_SECRET',
          ;
      $app; 
  };

DESCRIPTION

Plack::Middleware::Auth::OAuth is OAuth signature validation handler for Plack.

CONFIGURATION

consumer_key

Your application's consumer key.

consumer_secret

Your application's consumer secret.

validate_post

Includes body parameters in validation. For MBGA-Town, you should use this option.

check_nonce_cb

A callback function to validate oauth_nonce.

check_timestamp_cb

A callback function to validate oauth_timestamp.

AUTHOR

Hideo Kimura <hide@cpan.org> Masayuki Matsuki <songmu@cpan.org>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.