OAuth2/ServiceProvider/Strava.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 40.0% 2 / 5 totaltotal 89.6% 26 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
authorization_endpoint
1.0
CRAP 1.0
« OAuth2/ServiceProvider/Yahoo.pm ↑ Summary
1 package LWP::Authen::OAuth2::ServiceProvider::Strava;
2  
3 # ABSTRACT: Access Strava using OAuth2
4 2 our $VERSION = '0.20'; # VERSION
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our @ISA = qw(LWP::Authen::OAuth2::ServiceProvider);
10  
11 1 ▶sub authorization_endpoint {
Subroutine authorization_endpoint: called CC=1 SCAR=0.0
Pod documented
12 1 return "https://www.strava.com/oauth/authorize";
13 }
14  
15 1 ▶sub token_endpoint {
Subroutine token_endpoint: called CC=1 SCAR=0.0
Pod documented
16 1 return "https://www.strava.com/oauth/token";
17 }
18  
19 1 ▶sub authorization_required_params {
Subroutine authorization_required_params: called CC=1 SCAR=0.0
Pod undocumented
20 1 my $self = shift;
21 1 return ("client_id", "redirect_uri", "response_type", $self->SUPER::authorization_required_params());
22 }
23  
24 1 ▶sub authorization_optional_params {
Subroutine authorization_optional_params: called CC=1 SCAR=0.0
Pod undocumented
25 1 my $self = shift;
26 1 return ("approval_prompt", "scope", "state", $self->SUPER::authorization_optional_params());
27 }
28  
29 1 ▶sub request_default_params {
Subroutine request_default_params: called CC=1 SCAR=0.0
Pod undocumented
30 1 my $self = shift;
31 return (
32 1 "scope" => "public",
33 "response_type" => "code",
34 $self->SUPER::request_default_params()
35 );
36 }
37  
38  
39  
40 2 1;
41  
42 __END__
« OAuth2/ServiceProvider/Yahoo.pm ↑ Summary