blib/lib/LWP/Authen/OAuth2/ServiceProvider/MediaWiki.pm

filter: Statementstmt 96.8% 31 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 92.8% 13 / 14 Podpod 20.0% 2 / 10 totaltotal 82.1% 46 / 56 CC 1 SCAR 0.7
CC
1
Cov
97%
authorization_endpoint
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package LWP::Authen::OAuth2::ServiceProvider::MediaWiki;
2  
3 3 ▶use base qw(LWP::Authen::OAuth2::ServiceProvider);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Error::Pure qw(err);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '0.01';
10  
11 0 ▶sub authorization_endpoint {
Subroutine authorization_endpoint: not called CC=1 SCAR=6.9
Pod documented
12 0 err 'Need to be implemented. End point /oauth2/authorize.';
13 }
14  
15 1 ▶sub token_endpoint {
Subroutine token_endpoint: called CC=1 SCAR=0.0
Pod documented
16 1 err 'Need to be implemented. End point oauth2/access_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 ('response_type', 'client_id');
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 ('redirect_uri', 'scope', 'state', 'code_challenge', 'code_challenge_method');
27 }
28  
29 1 ▶sub authorization_default_params {
Subroutine authorization_default_params: called CC=1 SCAR=0.0
Pod undocumented
30 1 my $self = shift;
31 1 return ('response_type' => 'code');
32 }
33  
34 1 ▶sub request_required_params {
Subroutine request_required_params: called CC=1 SCAR=0.0
Pod undocumented
35 1 my $self = shift;
36 1 return ('grant_type');
37 }
38  
39 1 ▶sub request_optional_params {
Subroutine request_optional_params: called CC=1 SCAR=0.0
Pod undocumented
40 1 my $self = shift;
41 1 return ('client_id', 'client_secret', 'redirect_uri', 'scope', 'code',
42 'refresh_token', 'code_verifier');
43 }
44  
45 1 ▶sub request_default_params {
Subroutine request_default_params: called CC=1 SCAR=0.0
Pod undocumented
46 1 my $self = shift;
47 1 return ('grant_type' => 'authorization_code');
48 }
49  
50 1 ▶sub refresh_required_params {
Subroutine refresh_required_params: called CC=1 SCAR=0.0
Pod undocumented
51 1 my $self = shift;
52 1 return ('grant_type', 'refresh_token', 'client_id', 'client_secret');
53 }
54  
55 1 ▶sub refresh_default_params {
Subroutine refresh_default_params: called CC=1 SCAR=0.0
Pod undocumented
56 1 my $self = shift;
57 1 return ('grant_type' => 'refresh_token');
58 }
59  
60 3 1;
61  
62 __END__
↑ Summary