lib/LWP/Authen/OAuth2/ServiceProvider/Yahoo.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 22.2% 2 / 9 totaltotal 81.0% 30 / 37 CC 1 SCAR 0.0
CC
1
Cov
100%
authorization_endpoint
1.0
token_endpoint
1.0
authorization_required_params
1.0
CRAP 1.0
« lib/LWP/Authen/OAuth2/ServiceProvider/Line/AccessToken.pm ↑ Summary lib/LWP/Authen/OAuth2/ServiceProvider/Strava.pm »
1 package LWP::Authen::OAuth2::ServiceProvider::Yahoo;
2  
3 # ABSTRACT: Access Yahoo using OAuth2
4 2 our $VERSION = '0.18'; # VERSION
5  
6 2 our @ISA = qw(LWP::Authen::OAuth2::ServiceProvider);
7  
8 sub authorization_endpoint {
9 1 ▶ return "https://api.login.yahoo.com/oauth2/request_auth";
Subroutine authorization_endpoint: called CC=1 SCAR=0.0
Pod documented
10 }
11  
12 sub token_endpoint {
13 1 ▶ return "https://api.login.yahoo.com/oauth2/get_token";
Subroutine token_endpoint: called CC=1 SCAR=0.0
Pod documented
14 }
15  
16 sub authorization_required_params {
17 1 ▶ my $self = shift;
Subroutine authorization_required_params: called CC=1 SCAR=0.0
Pod undocumented
18 1 return ("client_id", "redirect_uri", "response_type", $self->SUPER::authorization_required_params());
19 }
20  
21 sub authorization_optional_params {
22 1 ▶ my $self = shift;
Subroutine authorization_optional_params: called CC=1 SCAR=0.0
Pod undocumented
23 1 return ("state", "language", $self->SUPER::authorization_optional_params());
24 }
25  
26 sub refresh_required_params {
27 1 ▶ my $self = shift;
Subroutine refresh_required_params: called CC=1 SCAR=0.0
Pod undocumented
28 1 return ("client_id", "client_secret", "redirect_uri", "grant_type", $self->SUPER::refresh_required_params());
29 }
30  
31 sub request_required_params {
32 1 ▶ my $self = shift;
Subroutine request_required_params: called CC=1 SCAR=0.0
Pod undocumented
33 1 return ("client_id", "client_secret", "redirect_uri", "grant_type", $self->SUPER::request_required_params());
34 }
35  
36 sub authorization_default_params {
37 1 ▶ my $self = shift;
Subroutine authorization_default_params: called CC=1 SCAR=0.0
Pod undocumented
38 1 return ("response_type" => "code", $self->SUPER::authorization_default_params());
39 }
40  
41 sub request_default_params {
42 1 ▶ my $self = shift;
Subroutine request_default_params: called CC=1 SCAR=0.0
Pod undocumented
43 1 return ("grant_type" => "authorization_code", $self->SUPER::request_default_params());
44 }
45  
46 sub refresh_default_params {
47 1 ▶ my $self = shift;
Subroutine refresh_default_params: called CC=1 SCAR=0.0
Pod undocumented
48 1 return ("grant_type" => "refresh_token", $self->SUPER::refresh_default_params());
49 }
50  
51 2 1;
52  
53 __END__
« lib/LWP/Authen/OAuth2/ServiceProvider/Line/AccessToken.pm ↑ Summary lib/LWP/Authen/OAuth2/ServiceProvider/Strava.pm »