OAuth::Lite2::ParamMethod::URIQueryParameter3pm
Builder/parser for oauth 2.0 uri-query type of parameter
Usage
my $meth = OAuth::Lite2::ParamMethod::URIQueryParameter->new;# server sideif ($meth->match( $plack_request )) {my ($token, $params) = $meth->parse( $plack_request );}# client sidemy $http_req = $meth->request_builder(...);
Overview
builder/parser for OAuth 2.0 uri-query type of parameter
Methods
new
Constructor
match( $plack_request )
Returns true if passed Plack::Request object is matched for the type of this method.
if ( $meth->match( $plack_request ) ) {...}
parse( $plack_request )
Parse the Plack::Request, and returns access token and oauth parameters.
my ($token, $params) = $meth->parse( $plack_request );
build_request( %params )
Build HTTP::Request object.
my $req = $meth->build_request(url => $url,method => $http_method,token => $access_token,oauth_params => $oauth_params,params => $params,content => $content,headers => $headers,);
is_legacy( $plack_request )
Returns true if passed Plack::Request object is based draft version 10.
if ( $meth->is_legacy( $plack_request ) ) {...}
Copyright and license
Copyright (C) 2010 by Lyo Kato
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.8 or, at your option, any later version of Perl 5 you may have available.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.