Client/TokenResponse.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Client/Error/TokenValidation.pm ↑ Summary Client/TokenResponseParser.pm »
1 package OIDC::Client::TokenResponse;
2 17 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 17 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 17 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 17 has 'access_token' => (
7 is => 'ro',
8 isa => 'Maybe[Str]',
9 required => 0,
10 );
11  
12 17 has 'id_token' => (
13 is => 'ro',
14 isa => 'Maybe[Str]',
15 required => 0,
16 );
17  
18 17 has 'token_type' => (
19 is => 'ro',
20 isa => 'Maybe[Str]',
21 required => 0,
22 );
23  
24 17 has 'expires_in' => (
25 is => 'ro',
26 isa => 'Maybe[Int]',
27 required => 0,
28 );
29  
30 17 has 'refresh_token' => (
31 is => 'ro',
32 isa => 'Maybe[Str]',
33 required => 0,
34 );
35  
36 17 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 17 __PACKAGE__->meta->make_immutable;
82  
83 17 1;
« Client/Error/TokenValidation.pm ↑ Summary Client/TokenResponseParser.pm »