File Coverage

blib/lib/OIDC/Client/TokenResponse.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package OIDC::Client::TokenResponse;
2 15     15   8183824 use utf8;
  15         474  
  15         145  
3 15     15   1371 use Moose;
  15         622827  
  15         129  
4 15     15   133611 use namespace::autoclean;
  15         118003  
  15         98  
5              
6             has 'access_token' => (
7             is => 'ro',
8             isa => 'Maybe[Str]',
9             required => 0,
10             );
11              
12             has 'id_token' => (
13             is => 'ro',
14             isa => 'Maybe[Str]',
15             required => 0,
16             );
17              
18             has 'token_type' => (
19             is => 'ro',
20             isa => 'Maybe[Str]',
21             required => 0,
22             );
23              
24             has 'expires_in' => (
25             is => 'ro',
26             isa => 'Maybe[Int]',
27             required => 0,
28             );
29              
30             has 'refresh_token' => (
31             is => 'ro',
32             isa => 'Maybe[Str]',
33             required => 0,
34             );
35              
36             has 'scope' => (
37             is => 'ro',
38             isa => 'Maybe[Str]',
39             required => 0,
40             );
41              
42             =encoding utf8
43              
44             =head1 NAME
45              
46             OIDC::Client::TokenResponse - OIDC token response
47              
48             =head1 DESCRIPTION
49              
50             Class representing an OIDC token response from provider
51              
52             =head1 ATTRIBUTES
53              
54             =head2 access_token
55              
56             The access token issued by the provider
57              
58             =head2 id_token
59              
60             The identity token issued by the provider
61              
62             =head2 token_type
63              
64             The type of the access token
65              
66             =head2 expires_in
67              
68             The lifetime in seconds of the access token
69              
70             =head2 refresh_token
71              
72             The refresh token which can be used to obtain new access tokens
73             using the same authorization grant
74              
75             =head2 scope
76              
77             The scope of the access token
78              
79             =cut
80              
81             __PACKAGE__->meta->make_immutable;
82              
83             1;