diff -Nru libnet-oauth2-perl-0.66/ChangeLog libnet-oauth2-perl-0.67/ChangeLog --- libnet-oauth2-perl-0.66/ChangeLog 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/ChangeLog 1970-01-01 00:00:00.000000000 +0000 @@ -1,199 +0,0 @@ - -=== Version history of distribution Net-OAuth2 - -All changes by Mark Overmeer unless noted otherwise. - -version 0.66: Tue 1 Oct 10:58:28 CEST 2019 - - Improvements: - - #3 replace JSON with JSON::MaybeXS [James Raspass] - -version 0.65: Mon 16 Sep 08:42:09 CEST 2019 - - Fixes: - - #1 set the Host header [Julien Semaan] - - #2 session_freeze [prsquee] - -version 0.64: Wed 21 Mar 09:48:02 CET 2018 - - Improvements: - - Converted to GIT, published on GitHub. - - added 'hd' passthru parameter to requests. - Implemented by [Diego Garcia del Rio] For usecases, see: - https://developers.google.com/identity/protocols/OpenIDConnect#hd-param - -version 0.63: Mon 18 Jan 13:51:55 CET 2016 - - Fixes: - - instagram does not like a Host header where port 443 is - mentioned. Do not use that port if it is the default for - the protocol. [Samuel Kaufman] - -version 0.62: Wed 11 Nov 12:29:40 CET 2015 - - Improvements: - - typo. rt.cpan.org#104332 [Christopher Hoskin, Debian] - - added contributed examples/google-refresh [Andreas Hernitscheck] - -version 0.61: Mon Jun 30 08:53:41 CEST 2014 - - Fixes: - - another regresssion test t/10req.t failed due to hash order - randomization. [cpantesters] - -version 0.60: Thu Jun 26 09:46:53 CEST 2014 - - Fixes: - - regresssion test t/10req.t failed due to hash order randomization. - [cpantesters] & rt.cpan.org#96731 [Andreas König] - -version 0.59: Tue Jun 24 23:56:23 CEST 2014 - - Fixes: - - do not send client_id and client_secret as parameters, because - it will get refused by QQ Catalyst. - rt.cpan.org#96454 [Scott Weisman] - - added 'state' passthru parameter to requests [Bas Bloemsaat] - -version 0.58: Wed May 28 23:17:09 CEST 2014 - - Improvements: - - generic accessor of ::AccessToken via attribute() [Sergey Lobanov] - -version 0.57: Mon Mar 24 09:33:07 CET 2014 - - Fixes: - - an update of an access-token may include a new refresh-token. - rt.cpan.org#94131 [Joe Papperello] - - Improvements: - - changed documentation style - -version 0.56: Wed Sep 4 11:50:48 CEST 2013 - - Fixes: - - auto_save option did not work: option processing typo - rt.cpan.org#86824 [Hironori Yoshida] - - basic-auth header should not contain a \n - rt.cpan.org#88409 [Anton Gerasimov] - -version 0.55: Tue Apr 2 16:13:33 CEST 2013 - Fixes: - - refreshed token at each access. - -version 0.54: Thu Mar 28 10:55:51 CET 2013 - Fixes: - - remove Build.PL - - Improvements: - - rename demo/ into examples/psgi - - added t/30refresh.t by [Samuel Kaufman] - - Test::Mock::LWP::Dispatch is now optional, because it has a - huge dependency tree via Moose. - -version 0.53: Mon Jan 28 12:01:26 CET 2013 - Changes: - - default of token_scheme changed to standard compliant - auth-header:Bearer - rt.cpan.org#82878 [Shmuel Fomberg] - - refresh_token renamed to refresh_always. - rt.cpan.org#82967 [Samuel Kaufman] - - Fixes: - - data handling in update_token - rt.cpan.org#82967 [Samuel Kaufman] - - Improvements: - - add documentation to token_scheme - rt.cpan.org#82878 [Shmuel Fomberg] - -version 0.52: Tue Jan 15 13:21:04 CET 2013 - Fixes: - - mistake ::AccessToken::freeze() -> ::AccessToken::session_freeze() - - Improvements: - - document how to use freeze and thaw. - -version 0.51: Tue Jan 8 11:52:17 CET 2013 - Fixes: - - the new ::WebServer::authorize() was conceptionally broken. - Corrected and documented how to be used. - Flagged by rt.cpan.org#82556 [Shmuel Fomberg] - - Improvements: - - more info in the demo - - improved documentation (still not sufficient) - - rename ::AccessToken::to_string() into ::to_json() Old name - still usable. - - add ::WebServer::autorize_response() for convenience. - - remove unused dependency on Test::Mock::LWP::Dispatch - - add ::AccessToken::session_freeze() and ::session_thaw() - Requested by rt.cpan.org#82554 [Shmuel Fomberg] - - error when people use old $profile->authorize_url() - -version 0.50: Mon Jan 7 12:39:16 CET 2013 - - New maintainer: Mark Overmeer - - Changes: - - Deprecate use of ::Client, in favor of ::Profile::* - - ::Profile::Base merged into ::Profile - - *_params() functions return a HASH (ref), not a list of pairs - - do not call authorize_url() to initiate the session, but - authorize(). - - Fixes: - - added documentation, added regression tests - - Improvements: - - merged/rewrote contributions by [nikopol], refresh - - merged/rewrote contributions by [Fukata], refresh - - merged/rewrote contributions by [Lamoz], the ::Profile::Password - - removed t/manifest and t/pod-coverage - ------ All changes below by Keith Grennan - -Revision history for Net-OAuth2 - -0.01 Mon, 18 Oct 2010 18:29:17 UTC - Very basic v0.01, tested against 37Signals API - -0.02 Thu, 21 Oct 2010 02:20:39 UTC - Added support for Facebook Graph API, made demo generic with support - for both 37signals and Facebook - -0.03 Thu, 16 Dec 2010 16:58:37 UTC - Merged fix for client->site_url (https://github.com/keeth/Net-OAuth2/pull/1) - -0.04 Fri, 17 Dec 2010 02:04:31 UTC - Add missing build require (YAML) - -0.05 Thu, 23 Dec 2010 18:24:30 UTC - Merged param warning fix (https://github.com/keeth/Net-OAuth2/pull/2) - -0.06 Mon, 03 Jan 2011 18:49:06 UTC - Merged grant_type param (https://github.com/keeth/Net-OAuth2/issues#issue/3) - -0.07 Mon, 03 Jan 2011 18:49:06 UTC - Spec V2.15 / Google compatibility - * Add scope param to Client - * Always include grant_type param - * Have POST request send params in body rather than URL query string - * Allow user to specify name of access token query param in protected resource requests, - since Google calls it oauth_token rather than access_token. This can be passed to the - client constructor as access_token_param => 'oauth_token'. - * Changed the default access_token_method to POST from GET - * Added a Google demo to the demo app that's included with the module package ( hosted at http://oauth2.kg23.com ). - -0.08 Wed, 15 Jun 2011 18:15:00 UTC - Add bearer_token_scheme parameter to support the various techniques in - https://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-02 - The default technique is now the authorization header (Authorization: OAuth ) - Example values of this parameter: - auth-header (default, same as auth-header:OAuth) - auth-header:Bearer (custom scheme) - auth-header:OAuth2 (custom scheme) - uri-query (same as uri-query:oauth_token) - uri-query:my_token_param (custom param name) - form-body (same as form-body:oauth_token) - form-body:my_token_param (custom param name) diff -Nru libnet-oauth2-perl-0.66/Changes libnet-oauth2-perl-0.67/Changes --- libnet-oauth2-perl-0.66/Changes 1970-01-01 00:00:00.000000000 +0000 +++ libnet-oauth2-perl-0.67/Changes 2021-09-27 15:45:52.000000000 +0000 @@ -0,0 +1,214 @@ +Revision history for Perl distribution Net-OAuth2 + +All changes by Thomas Uhle unless noted otherwise. + +0.67 Mon, 27 Sep 2021 + + This is a maintenance release. Thomas Uhle is taking over development. + Thanks to Mark Overmeer for his work in the past years. + + * Update maintainer information and URLs. + * Reorder changelog entries from newest to oldest (versions 0.01-0.08). + * Replace die by Carp::croak. + * Fix module dependencies. + * Fix client authentication. + +----- All changes below by Mark Overmeer unless noted otherwise. + +0.66 Tue, 1 Oct 10:58:28 CEST 2019 + + Improvements: + - #3 replace JSON with JSON::MaybeXS [James Raspass] + +0.65 Mon, 16 Sep 08:42:09 CEST 2019 + + Fixes: + - #1 set the Host header [Julien Semaan] + - #2 session_freeze [prsquee] + +0.64 Wed, 21 Mar 09:48:02 CET 2018 + + Improvements: + - Converted to GIT, published on GitHub. + - added 'hd' passthru parameter to requests. + Implemented by [Diego Garcia del Rio] For usecases, see: + https://developers.google.com/identity/protocols/OpenIDConnect#hd-param + +0.63 Mon, 18 Jan 13:51:55 CET 2016 + + Fixes: + - instagram does not like a Host header where port 443 is + mentioned. Do not use that port if it is the default for + the protocol. [Samuel Kaufman] + +0.62 Wed, 11 Nov 12:29:40 CET 2015 + + Improvements: + - typo. rt.cpan.org#104332 [Christopher Hoskin, Debian] + - added contributed examples/google-refresh [Andreas Hernitscheck] + +0.61 Mon, Jun 30 08:53:41 CEST 2014 + + Fixes: + - another regresssion test t/10req.t failed due to hash order + randomization. [cpantesters] + +0.60 Thu, Jun 26 09:46:53 CEST 2014 + + Fixes: + - regresssion test t/10req.t failed due to hash order randomization. + [cpantesters] & rt.cpan.org#96731 [Andreas König] + +0.59 Tue, Jun 24 23:56:23 CEST 2014 + + Fixes: + - do not send client_id and client_secret as parameters, because + it will get refused by QQ Catalyst. + rt.cpan.org#96454 [Scott Weisman] + - added 'state' passthru parameter to requests [Bas Bloemsaat] + +0.58 Wed, May 28 23:17:09 CEST 2014 + + Improvements: + - generic accessor of ::AccessToken via attribute() [Sergey Lobanov] + +0.57 Mon, Mar 24 09:33:07 CET 2014 + + Fixes: + - an update of an access-token may include a new refresh-token. + rt.cpan.org#94131 [Joe Papperello] + + Improvements: + - changed documentation style + +0.56 Wed, Sep 4 11:50:48 CEST 2013 + + Fixes: + - auto_save option did not work: option processing typo + rt.cpan.org#86824 [Hironori Yoshida] + - basic-auth header should not contain a \n + rt.cpan.org#88409 [Anton Gerasimov] + +0.55 Tue, Apr 2 16:13:33 CEST 2013 + + Fixes: + - refreshed token at each access. + +0.54 Thu, Mar 28 10:55:51 CET 2013 + + Fixes: + - remove Build.PL + + Improvements: + - rename demo/ into examples/psgi + - added t/30refresh.t by [Samuel Kaufman] + - Test::Mock::LWP::Dispatch is now optional, because it has a + huge dependency tree via Moose. + +0.53 Mon, Jan 28 12:01:26 CET 2013 + + Changes: + - default of token_scheme changed to standard compliant + auth-header:Bearer + rt.cpan.org#82878 [Shmuel Fomberg] + - refresh_token renamed to refresh_always. + rt.cpan.org#82967 [Samuel Kaufman] + + Fixes: + - data handling in update_token + rt.cpan.org#82967 [Samuel Kaufman] + + Improvements: + - add documentation to token_scheme + rt.cpan.org#82878 [Shmuel Fomberg] + +0.52 Tue, Jan 15 13:21:04 CET 2013 + + Fixes: + - mistake ::AccessToken::freeze() -> ::AccessToken::session_freeze() + + Improvements: + - document how to use freeze and thaw. + +0.51 Tue, Jan 8 11:52:17 CET 2013 + + Fixes: + - the new ::WebServer::authorize() was conceptionally broken. + Corrected and documented how to be used. + Flagged by rt.cpan.org#82556 [Shmuel Fomberg] + + Improvements: + - more info in the demo + - improved documentation (still not sufficient) + - rename ::AccessToken::to_string() into ::to_json() Old name + still usable. + - add ::WebServer::autorize_response() for convenience. + - remove unused dependency on Test::Mock::LWP::Dispatch + - add ::AccessToken::session_freeze() and ::session_thaw() + Requested by rt.cpan.org#82554 [Shmuel Fomberg] + - error when people use old $profile->authorize_url() + +0.50 Mon, Jan 7 12:39:16 CET 2013 + + New maintainer: Mark Overmeer + + Changes: + - Deprecate use of ::Client, in favor of ::Profile::* + - ::Profile::Base merged into ::Profile + - *_params() functions return a HASH (ref), not a list of pairs + - do not call authorize_url() to initiate the session, but + authorize(). + + Fixes: + - added documentation, added regression tests + + Improvements: + - merged/rewrote contributions by [nikopol], refresh + - merged/rewrote contributions by [Fukata], refresh + - merged/rewrote contributions by [Lamoz], the ::Profile::Password + - removed t/manifest and t/pod-coverage + +----- All changes below by Keith Grennan + +0.08 Wed, 15 Jun 2011 18:15:00 UTC + Add bearer_token_scheme parameter to support the various techniques in + https://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-02 + The default technique is now the authorization header (Authorization: OAuth ) + Example values of this parameter: + auth-header (default, same as auth-header:OAuth) + auth-header:Bearer (custom scheme) + auth-header:OAuth2 (custom scheme) + uri-query (same as uri-query:oauth_token) + uri-query:my_token_param (custom param name) + form-body (same as form-body:oauth_token) + form-body:my_token_param (custom param name) + +0.07 Mon, 03 Jan 2011 18:49:06 UTC + Spec V2.15 / Google compatibility + * Add scope param to Client + * Always include grant_type param + * Have POST request send params in body rather than URL query string + * Allow user to specify name of access token query param in protected resource requests, + since Google calls it oauth_token rather than access_token. This can be passed to the + client constructor as access_token_param => 'oauth_token'. + * Changed the default access_token_method to POST from GET + * Added a Google demo to the demo app that's included with the module package (hosted at http://oauth2.kg23.com). + +0.06 Mon, 03 Jan 2011 18:49:06 UTC + Merged grant_type param (https://github.com/keeth/Net-OAuth2/issues#issue/3) + +0.05 Thu, 23 Dec 2010 18:24:30 UTC + Merged param warning fix (https://github.com/keeth/Net-OAuth2/pull/2) + +0.04 Fri, 17 Dec 2010 02:04:31 UTC + Add missing build require (YAML) + +0.03 Thu, 16 Dec 2010 16:58:37 UTC + Merged fix for client->site_url (https://github.com/keeth/Net-OAuth2/pull/1) + +0.02 Thu, 21 Oct 2010 02:20:39 UTC + Added support for Facebook Graph API, made demo generic with support + for both 37signals and Facebook + +0.01 Mon, 18 Oct 2010 18:29:17 UTC + Very basic v0.01, tested against 37Signals API diff -Nru libnet-oauth2-perl-0.66/debian/changelog libnet-oauth2-perl-0.67/debian/changelog --- libnet-oauth2-perl-0.66/debian/changelog 2019-11-26 07:22:58.000000000 +0000 +++ libnet-oauth2-perl-0.67/debian/changelog 2021-10-15 16:30:07.000000000 +0000 @@ -1,3 +1,28 @@ +libnet-oauth2-perl (0.67-1) unstable; urgency=medium + + * Team upload. + + [ Debian Janitor ] + * Set upstream metadata fields: Bug-Database, Bug-Submit. + * Update standards version to 4.5.0, no changes needed. + + [ Laurent Baillet ] + * fix typo in debian/control description + + [ Debian Janitor ] + * Bump debhelper from old 12 to 13. + * Update standards version to 4.5.1, no changes needed. + + [ gregor herrmann ] + * Import upstream version 0.67. + * Update debian/upstream/metadata. + * Update Upstream-Contact in debian/copyright. + * Update test and runtime dependencies. + * Declare compliance with Debian Policy 4.6.0. + * Set Rules-Requires-Root: no. + + -- gregor herrmann Fri, 15 Oct 2021 18:30:07 +0200 + libnet-oauth2-perl (0.66-1) unstable; urgency=medium * Team upload. diff -Nru libnet-oauth2-perl-0.66/debian/control libnet-oauth2-perl-0.67/debian/control --- libnet-oauth2-perl-0.66/debian/control 2019-11-26 07:22:58.000000000 +0000 +++ libnet-oauth2-perl-0.67/debian/control 2021-10-15 16:30:07.000000000 +0000 @@ -4,17 +4,17 @@ Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional -Build-Depends: debhelper-compat (= 12) +Build-Depends: debhelper-compat (= 13) Build-Depends-Indep: libhttp-message-perl , libjson-maybexs-perl , liburi-perl , libwww-perl , - libyaml-perl , perl -Standards-Version: 4.4.1 +Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libnet-oauth2-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libnet-oauth2-perl.git Homepage: https://metacpan.org/release/Net-OAuth2 +Rules-Requires-Root: no Package: libnet-oauth2-perl Architecture: all @@ -23,11 +23,10 @@ libhttp-message-perl, libjson-maybexs-perl, liburi-perl, - libwww-perl, - libyaml-perl + libwww-perl Description: implementation of the OAuth 2.0 protocol Net::OAuth2 implements OAuth 2.0 authorization protocol client. - OAuth 2.0 is imcompatible with OAuth 1.0. + OAuth 2.0 is incompatible with OAuth 1.0. . The library can be used to authenticate users against OAuth 2.0 service providers such as Google and Facebook. diff -Nru libnet-oauth2-perl-0.66/debian/copyright libnet-oauth2-perl-0.67/debian/copyright --- libnet-oauth2-perl-0.66/debian/copyright 2019-11-26 07:22:58.000000000 +0000 +++ libnet-oauth2-perl-0.67/debian/copyright 2021-10-15 16:30:07.000000000 +0000 @@ -1,6 +1,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Net-OAuth2 -Upstream-Contact: Mark Overmeer +Upstream-Contact: Thomas Uhle Upstream-Name: Net-OAuth2 Files: * diff -Nru libnet-oauth2-perl-0.66/debian/upstream/metadata libnet-oauth2-perl-0.67/debian/upstream/metadata --- libnet-oauth2-perl-0.66/debian/upstream/metadata 2019-11-26 07:22:58.000000000 +0000 +++ libnet-oauth2-perl-0.67/debian/upstream/metadata 2021-10-15 16:30:07.000000000 +0000 @@ -1,4 +1,6 @@ --- Archive: CPAN -Repository: https://github.com/markov2/perl5-Net-OAuth2.git -Repository-Browse: https://github.com/markov2/perl5-Net-OAuth2 +Bug-Database: https://gitlab.com/uhle/perl-net-oauth2/-/issues +Bug-Submit: https://gitlab.com/uhle/perl-net-oauth2/-/issues/new +Repository: https://gitlab.com/uhle/perl-net-oauth2.git +Repository-Browse: https://gitlab.com/uhle/perl-net-oauth2 diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/AccessToken.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2/AccessToken.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/AccessToken.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/AccessToken.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,16 +8,15 @@ package Net::OAuth2::AccessToken; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use warnings; use strict; our $VERSION; # to be able to test in devel environment +use Carp qw(croak); use JSON::MaybeXS qw/encode_json/; -use URI::Escape qw/uri_escape/; -use Encode qw/find_encoding/; # Attributes to be saved to preserve the session. my @session = qw/access_token token_type refresh_token expires_at @@ -42,7 +41,7 @@ # client is the pre-v0.50 name my $profile = $self->{NOA_profile} = $args->{profile} || $args->{client} - or die "::AccessToken needs profile object"; + or croak "::AccessToken needs profile object"; $self->{NOA_access_token} = $args->{access_token}; $self->{NOA_refresh_token} = $args->{refresh_token}; diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/AccessToken.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2/AccessToken.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/AccessToken.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/AccessToken.pod 2021-09-27 15:45:52.000000000 +0000 @@ -270,17 +270,12 @@ =back -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Client.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2/Client.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Client.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Client.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,7 +8,7 @@ package Net::OAuth2::Client; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use warnings; use strict; diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Client.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2/Client.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Client.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Client.pod 2021-09-27 15:45:52.000000000 +0000 @@ -74,17 +74,12 @@ =back -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/Password.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/Password.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/Password.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/Password.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,7 +8,7 @@ package Net::OAuth2::Profile::Password; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use base 'Net::OAuth2::Profile'; diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/Password.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/Password.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/Password.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/Password.pod 2021-09-27 15:45:52.000000000 +0000 @@ -160,17 +160,12 @@ =back -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/WebServer.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/WebServer.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/WebServer.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/WebServer.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,15 +8,15 @@ package Net::OAuth2::Profile::WebServer; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use base 'Net::OAuth2::Profile'; use warnings; use strict; +use Carp qw(croak); use Net::OAuth2::AccessToken; -use MIME::Base64 'encode_base64'; use Scalar::Util 'blessed'; use HTTP::Request (); @@ -90,10 +90,6 @@ , $params ); - my $basic = encode_base64 "$params->{client_id}:$params->{client_secret}" - , ''; # no new-lines! - - $request->headers->header(Authorization => "Basic $basic"); my $response = $self->request($request); Net::OAuth2::AccessToken->new @@ -107,7 +103,7 @@ sub update_access_token($@) { my ($self, $access, @req_params) = @_; my $refresh = $access->refresh_token - or die 'unable to refresh token without refresh_token'; + or croak 'unable to refresh token without refresh_token'; my $req = $self->build_request ( $self->refresh_token_method @@ -119,12 +115,12 @@ my %data = $self->params_from_response($resp, 'update token'); my $token = $data{access_token} - or die "no access token found in refresh data"; + or croak "no access token found in refresh data"; my $type = $data{token_type}; my $exp = $data{expires_in} - or die "no expires_in found in refresh data"; + or croak "no expires_in found in refresh data"; $access->update_token($token, $type, $exp+time(), $data{refresh_token}); } diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/WebServer.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/WebServer.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile/WebServer.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile/WebServer.pod 2021-09-27 15:45:52.000000000 +0000 @@ -356,17 +356,12 @@ In this case, do not use L. -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,16 +8,17 @@ package Net::OAuth2::Profile; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use warnings; use strict; +use Carp qw(carp croak confess); +use MIME::Base64 qw(encode_base64); use LWP::UserAgent (); use URI (); use JSON::MaybeXS qw/decode_json/; -use Carp qw/confess carp/; use Scalar::Util qw/blessed/; use Encode qw/encode/; @@ -148,7 +149,7 @@ } elsif($scheme eq 'form-body') { $request->headers->content_type eq MIME_URLENC - or die "embedding access token in request body is only valid " + or croak "embedding access token in request body is only valid " . "for 'MIME_URLENC' content type"; my $query_param = $opt || 'oauth_token'; @@ -168,12 +169,17 @@ { my ($self, $method, $uri_base, $params) = @_; my %params = ref $params eq 'HASH' ? %$params : @$params; + my $basic; + # rfc6749 section "2.3.1. Client Password" # The Auth Header is always supported, but client_id/client_secret as - # parameters may be as well. We do both when ->new(secrets_in_params) + # parameters may be as well. We do the latter when ->new(secrets_in_params) # to support old servers. - delete @params{qw/client_id client_secret/} - unless $self->{NOP_show_secret}; + unless ($self->{NOP_show_secret}) + { + $basic = encode_base64("$params{client_id}:$params{client_secret}", ''); + delete @params{qw/client_id client_secret/}; + } my $request; @@ -208,6 +214,8 @@ $head->header(Host => $uri->host); $head->header(Connection => 'Keep-Alive'); + $head->header(Authorization => "Basic $basic") if $basic; + $request; } @@ -241,7 +249,7 @@ } substr($content, 200) = '...' if length $content > 200; - die "failed oauth call $why: $error\n$content\n"; + croak "failed oauth call $why: $error\n$content\n"; } sub authorize_method() {panic} # user must use autorize url diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2/Profile.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2/Profile.pod 2021-09-27 15:45:52.000000000 +0000 @@ -238,17 +238,12 @@ =back -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2.pm libnet-oauth2-perl-0.67/lib/Net/OAuth2.pm --- libnet-oauth2-perl-0.66/lib/Net/OAuth2.pm 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2.pm 2021-09-27 15:45:52.000000000 +0000 @@ -8,7 +8,7 @@ package Net::OAuth2; use vars '$VERSION'; -$VERSION = '0.66'; +$VERSION = '0.67'; use warnings; diff -Nru libnet-oauth2-perl-0.66/lib/Net/OAuth2.pod libnet-oauth2-perl-0.67/lib/Net/OAuth2.pod --- libnet-oauth2-perl-0.66/lib/Net/OAuth2.pod 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/lib/Net/OAuth2.pod 2021-09-27 15:45:52.000000000 +0000 @@ -31,17 +31,12 @@ =back -=head1 SEE ALSO - -This module is part of Net-OAuth2 distribution version 0.66, -built on October 01, 2019. Website: F. - =head1 COPYRIGHTS -Copyrights 2013-2019-2018 on the perl code and the related documentation - by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see ChangeLog. +Copyrights 2013-2019 on the perl code and the related documentation + by [Mark Overmeer ] for SURFnet bv, The Netherlands. For other contributors see L. -Copyrights 2011-12 by Keith Grennan. +Copyrights 2011-2012 by Keith Grennan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -Nru libnet-oauth2-perl-0.66/Makefile.PL libnet-oauth2-perl-0.67/Makefile.PL --- libnet-oauth2-perl-0.66/Makefile.PL 2019-10-01 08:59:05.000000000 +0000 +++ libnet-oauth2-perl-0.67/Makefile.PL 2021-09-27 15:45:52.000000000 +0000 @@ -3,34 +3,43 @@ WriteMakefile ( NAME => 'Net::OAuth2' - , VERSION => '0.66' + , VERSION => '0.67' , PREREQ_PM => - { Test::More => 0 - , YAML => 0 - , URI => '0' - , JSON::MaybeXS => '0' - , LWP::UserAgent => '0' - , Scalar::Util => 0 - , HTTP::Request => 0 - , HTTP::Status => 0 + { 'Test::More' => 0, + 'constant' => 0, + 'strict' => 0, + 'warnings' => 0, + 'Carp' => 0, + 'Encode' => 0, + 'Scalar::Util' => 0, + 'MIME::Base64' => 0, + 'URI' => '0', + 'JSON::MaybeXS' => 0, + 'LWP::UserAgent' => 0, + 'HTTP::Request' => 0, + 'HTTP::Response' => 0, + 'HTTP::Status' => 0, # optional -# , Test::Mock::LWP::Dispatch => 0 - } - , AUTHOR => 'Mark Overmeer ' +# 'Test::Mock::LWP::Dispatch' => 0 + } + , AUTHOR => 'Thomas Uhle ' , ABSTRACT => 'OAuth2 authenticating client' , LICENSE => 'perl_5' , META_MERGE => { 'meta-spec' => { version => 2 } , resources => - { repository => - { type => 'git' - , url => 'https://github.com/markov2/perl5-Net-OAuth2.git' - , web => 'https://github.com/markov2/perl5-Net-OAuth2' - } - , homepage => 'http://perl.overmeer.net/CPAN/' - , license => [ 'http://dev.perl.org/licenses/' ] + { homepage => 'https://search.cpan.org/~uhle/Net-OAuth2/', + repository => { + type => 'git', + url => 'https://gitlab.com/uhle/perl-net-oauth2.git', + web => 'https://gitlab.com/uhle/perl-net-oauth2' + }, + bugtracker => { + web => 'https://gitlab.com/uhle/perl-net-oauth2/-/issues', + }, + license => 'http://dev.perl.org/licenses/', } } @@ -46,7 +55,7 @@ # for POD FIRST_YEAR = 2013 -EMAIL = markov@cpan.org -WEBSITE = http://perl.overmeer.net/CPAN/ +EMAIL = uhle@cpan.org +WEBSITE = https://search.cpan.org/~uhle/Net-OAuth2/ __POSTAMBLE diff -Nru libnet-oauth2-perl-0.66/MANIFEST libnet-oauth2-perl-0.67/MANIFEST --- libnet-oauth2-perl-0.66/MANIFEST 2019-10-01 08:59:06.000000000 +0000 +++ libnet-oauth2-perl-0.67/MANIFEST 2021-09-27 15:45:52.000000000 +0000 @@ -1,4 +1,4 @@ -ChangeLog +Changes MANIFEST Makefile.PL README diff -Nru libnet-oauth2-perl-0.66/META.json libnet-oauth2-perl-0.67/META.json --- libnet-oauth2-perl-0.66/META.json 2019-10-01 08:59:06.000000000 +0000 +++ libnet-oauth2-perl-0.67/META.json 2021-09-27 15:45:52.000000000 +0000 @@ -1,7 +1,7 @@ { "abstract" : "OAuth2 authenticating client", "author" : [ - "Mark Overmeer " + "Thomas Uhle " ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 7.3, CPAN::Meta::Converter version 2.150010", @@ -16,7 +16,7 @@ "no_index" : { "directory" : [ "t", - "inc" + "xt" ] }, "prereqs" : { @@ -32,29 +32,38 @@ }, "runtime" : { "requires" : { + "Carp" : "0", + "Encode" : "0", "HTTP::Request" : "0", + "HTTP::Response" : "0", "HTTP::Status" : "0", "JSON::MaybeXS" : "0", "LWP::UserAgent" : "0", + "MIME::Base64" : "0", "Scalar::Util" : "0", "Test::More" : "0", "URI" : "0", - "YAML" : "0" + "constant" : "0", + "strict" : "0", + "warnings" : "0" } } }, "release_status" : "stable", "resources" : { - "homepage" : "http://perl.overmeer.net/CPAN/", + "bugtracker" : { + "web" : "https://gitlab.com/uhle/perl-net-oauth2/-/issues" + }, + "homepage" : "https://search.cpan.org/~uhle/Net-OAuth2/", "license" : [ "http://dev.perl.org/licenses/" ], "repository" : { "type" : "git", - "url" : "https://github.com/markov2/perl5-Net-OAuth2.git", - "web" : "https://github.com/markov2/perl5-Net-OAuth2" + "url" : "https://gitlab.com/uhle/perl-net-oauth2.git", + "web" : "https://gitlab.com/uhle/perl-net-oauth2" } }, - "version" : "0.66", + "version" : "0.67", "x_serialization_backend" : "JSON::PP version 2.94" } diff -Nru libnet-oauth2-perl-0.66/META.yml libnet-oauth2-perl-0.67/META.yml --- libnet-oauth2-perl-0.66/META.yml 2019-10-01 08:59:06.000000000 +0000 +++ libnet-oauth2-perl-0.67/META.yml 2021-09-27 15:45:52.000000000 +0000 @@ -1,7 +1,7 @@ --- abstract: 'OAuth2 authenticating client' author: - - 'Mark Overmeer ' + - 'Thomas Uhle ' build_requires: ExtUtils::MakeMaker: '0' configure_requires: @@ -16,19 +16,26 @@ no_index: directory: - t - - inc + - xt requires: + Carp: '0' + Encode: '0' HTTP::Request: '0' + HTTP::Response: '0' HTTP::Status: '0' JSON::MaybeXS: '0' LWP::UserAgent: '0' + MIME::Base64: '0' Scalar::Util: '0' Test::More: '0' URI: '0' - YAML: '0' + constant: '0' + strict: '0' + warnings: '0' resources: - homepage: http://perl.overmeer.net/CPAN/ + bugtracker: https://gitlab.com/uhle/perl-net-oauth2/-/issues + homepage: https://search.cpan.org/~uhle/Net-OAuth2/ license: http://dev.perl.org/licenses/ - repository: https://github.com/markov2/perl5-Net-OAuth2.git -version: '0.66' + repository: https://gitlab.com/uhle/perl-net-oauth2.git +version: '0.67' x_serialization_backend: 'CPAN::Meta::YAML version 0.011' diff -Nru libnet-oauth2-perl-0.66/README libnet-oauth2-perl-0.67/README --- libnet-oauth2-perl-0.66/README 2019-09-16 06:42:38.000000000 +0000 +++ libnet-oauth2-perl-0.67/README 2021-09-27 15:45:52.000000000 +0000 @@ -1,5 +1,4 @@ -=== README for Net-OAuth2 version 0.65 -= Generated on Mon Sep 16 08:42:38 2019 by OODoc 2.02 +=== README for Net-OAuth2 version 0.67 There are various ways to install this module: @@ -9,17 +8,16 @@ (2) if you use Windows, have a look at http://ppm.activestate.com/ (3) if you have downloaded this module manually (as root/administrator) - gzip -d Net-OAuth2-0.65.tar.gz - tar -xf Net-OAuth2-0.65.tar - cd Net-OAuth2-0.65 + gzip -d Net-OAuth2-0.67.tar.gz + tar -xf Net-OAuth2-0.67.tar + cd Net-OAuth2-0.67 perl Makefile.PL - make # optional + make make test # optional make install For usage, see the included manual-pages or - http://search.cpan.org/dist/Net-OAuth2-0.65/ + https://search.cpan.org/dist/Net-OAuth2-0.67/ Please report problems to - http://rt.cpan.org/Dist/Display.html?Queue=Net-OAuth2 - + https://gitlab.com/uhle/perl-net-oauth2/-/issues diff -Nru libnet-oauth2-perl-0.66/README.md libnet-oauth2-perl-0.67/README.md --- libnet-oauth2-perl-0.66/README.md 2019-09-16 06:42:38.000000000 +0000 +++ libnet-oauth2-perl-0.67/README.md 2021-09-27 15:45:52.000000000 +0000 @@ -1,9 +1,4 @@ -# distribution Net-Oauth2 - - * My extended documentation: - * Development via GitHub: - * Download from CPAN: - * Indexed from CPAN: +# Perl distribution Net-OAuth2 This distribution implements an OAuth2 client, with knowledge about various services. @@ -11,31 +6,24 @@ ## Development → Release Important to know, is that I use an extension on POD to write the manuals. -The "raw" unprocessed version is visible on GitHub. It will run without +The "raw" unprocessed version is visible on GitLab. It will run without problems, but does not contain manual-pages. Releases to CPAN are different: "raw" documentation gets removed from -the code and translated into real POD and clean HTML. This reformatting -is implemented with the OODoc distribution (A name I chose before OpenOffice -existed, sorry for the confusion) +the code and translated into real POD and clean HTML. -Clone from github for the "raw" version. For instance, when you want +Clone from GitLab for the "raw" version. For instance, when you want to contribute a new feature. -On github, you can find the processed version for each release. But the -better source is CPAN; to get it installed simply run: +On CPAN, you can find the processed version for each release. Simply run +the following command to get it installed: ```sh - cpan -i Net::Oauth2 + cpan -i Net::OAuth2 ``` ## Contributing -When you want to contribute to this module, you do not need to provide -a perfect patch... actually: it is nearly impossible to create a patch -which I will merge without modification. Usually, I need to adapt the -style of code and documentation to my own strict rules. - When you submit an extension, please contribute a set with 1. code @@ -45,10 +33,9 @@ 3. regression tests in t/ **Please note:** -When you contribute in any way, you agree to transfer the copyrights to -Mark Overmeer (you will get the honors in the code and/or ChangeLog). -You also automatically agree that your contribution is released under -the same license as this project: licensed as perl itself. +When you contribute in any way, you automatically agree that your +contribution is released under the same license as this project: licensed +as Perl itself. ## Copyright and License