OAuth:...ameter(3pm)
β¨ NAME β¨
okay so bestie, meet OAuth::Lite2::ParamMethod::URIQueryParameter β she's the builder and parser for the OAuth 2.0 uri-query type of parameter π
and yes she's from the User Contributed Perl Documentation (section 3pm), she's that girl π
πΈ SYNOPSIS πΈ
my $meth = OAuth::Lite2::ParamMethod::URIQueryParameter->new;
# server side
if ($meth->match( $plack_request )) {
my ($token, $params) = $meth->parse( $plack_request );
}
# client side
my $http_req = $meth->request_builder(...);
π¦ DESCRIPTION π¦
no cap, she's literally the builder/parser for OAuth 2.0 uri-query type of parameter. that's the whole vibe. she builds, she parses, she slays π«Ά
π METHODS π
π new
Constructor β¨ (she's born, she's iconic)
π match( $plack_request )
returns true if the Plack::Request object you passed in is matched for the type of this method π
if ( $meth->match( $plack_request ) ) {
...
}
π parse( $plack_request )
parses the Plack::Request, and hands you back the access token and the oauth parameters π
my ($token, $params) = $meth->parse( $plack_request );
β build_request( %params )
builds an 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 the Plack::Request object you passed is based on draft version 10 π°οΈ (yes, a legacy era, we respect the elders)
if ( $meth->is_legacy( $plack_request ) ) {
...
}
π SEE ALSO π
OAuth::Lite2::ParamMethodsOAuth::Lite2::ParamMethodOAuth::Lite2::ParamMethod::AuthHeaderOAuth::Lite2::ParamMethod::FormEncodedBody
(the whole friend group, go say hi π«Ά)
π AUTHOR π
Lyo Kato, <lyo.kato@gmail.com> β the mastermind, the main character π
π 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.
fr fr, read the license, it's giving generous but it's still a license π
okay that's the whole page bestie, mwah π this was perl v5.36.0, dated 2023-07-01, and she ate, no crumbs left πΈππ
π¦ where this page comes from
- debian trixie: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liboauth-lite2-perl 0.11-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms