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