Skip Menu |

This queue is for tickets about the WebService-Strava CPAN distribution.

Report information
The Basics
Id: 112640
Status: resolved
Priority: 0/
Queue: WebService-Strava

People
Owner: techman [...] cpan.org
Requestors: pavel.leon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Dwolla.pm introduced bug with LWP-Authen-Oauth2
Date: Wed, 2 Mar 2016 18:07:59 -0300
To: bug-WebService-Strava [...] rt.cpan.org
From: Pablo León <pavel.leon [...] gmail.com>
Hi Leon! Just hacking around with WebService-Strava found, what I think is a bug LWP-Authen-Oauth2 introduced by support of Dwolla The ServiceProvider init() now req
Subject: Re: Dwolla.pm introduced bug with LWP-Authen-Oauth2
Date: Wed, 2 Mar 2016 18:11:07 -0300
To: bug-WebService-Strava [...] rt.cpan.org
From: Pablo León <pavel.leon [...] gmail.com>
Hi Leon! (sorry for the incomplete mail) Just hacking around with WebService-Strava found, what I think is a bug LWP-Authen-Oauth2 introduced by support of Dwolla The ServiceProvider init() now requires ''use_test_urls" parameter, which is used for WS-Dwolla to select which url the authentication will go against, but not used by WS-Strava. I open the bug here instead of LWP-Authen-Oauth2, because I guess it will come anyway to you to decide how to manage it. Regards - Pablo León On Wed, Mar 2, 2016 at 6:07 PM, Pablo León <pavel.leon@gmail.com> wrote: Show quoted text
> > Hi Leon! > > Just hacking around with WebService-Strava found, what I think is a > bug LWP-Authen-Oauth2 > introduced by support of Dwolla > > The ServiceProvider init() now req > >
Hi Pablo, Thanks for raising this! I'm a maintainer for both this and LWP-Authen-Oauth2, so I'm planning to take a good look on the weekend. I'm guessing the 'use_test_urls' option should be optional and that could be set inside the Strava.pm package that comes with the LWP lib. Leon
Hi Pablo, If you need a quick solution you can monkey patch LWP/Authen/OAuth2/ServiceProvider.pm in the copy_options sub from $self->copy_option($opts, 'use_test_urls'); to $self->copy_option($opts, 'use_test_urls') if defined $opts->{use_test_urls}; I submitted a PR for one of the other maintainers to review, so I'm sure it'll be updated in no time :) Leon
Subject: Re: [rt.cpan.org #112640] Dwolla.pm introduced bug with LWP-Authen-Oauth2
Date: Sat, 05 Mar 2016 21:38:29 +0000
To: bug-WebService-Strava [...] rt.cpan.org
From: Pablo León <pavel.leon [...] gmail.com>
Thanks - pablo On Fri, Mar 4, 2016, 23:34 Leon Wright via RT < bug-WebService-Strava@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=112640 > > > Hi Pablo, > > If you need a quick solution you can monkey patch > LWP/Authen/OAuth2/ServiceProvider.pm in the copy_options sub > > from > > $self->copy_option($opts, 'use_test_urls'); > > to > > $self->copy_option($opts, 'use_test_urls') if defined > $opts->{use_test_urls}; > > I submitted a PR for one of the other maintainers to review, so I'm sure > it'll be updated in no time :) > > Leon >
Pablo, The upstream library has been fixed. This will sort out this issue for you. https://metacpan.org/release/LWP-Authen-OAuth2 Regards, Leon
Subject: Re: [rt.cpan.org #112640] Dwolla.pm introduced bug with LWP-Authen-Oauth2
Date: Mon, 14 Mar 2016 11:06:51 +0000
To: bug-WebService-Strava [...] rt.cpan.org
From: Pablo León <pavel.leon [...] gmail.com>
Thanks! - Pablo On Sun, Mar 13, 2016, 23:37 Leon Wright via RT < bug-WebService-Strava@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=112640 > > > Pablo, > > The upstream library has been fixed. This will sort out this issue for you. > > https://metacpan.org/release/LWP-Authen-OAuth2 > > Regards, > > Leon >