| 1 | package OIDC::Lite::Client::Token; | ||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use base 'Class::Accessor::Fast'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | __PACKAGE__->mk_accessors(qw( | |
| 7 | access_token | ||
| 8 | expires_in | ||
| 9 | refresh_token | ||
| 10 | access_token_secret | ||
| 11 | scope | ||
| 12 | id_token | ||
| 13 | )); | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | OIDC::Lite::Client::Token - Class represents access-token response | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | my $t = $client->get_access_token( ... ); | ||
| 22 | $t->access_token; | ||
| 23 | $t->expires_in; | ||
| 24 | $t->refresh_token; | ||
| 25 | $t->scope; | ||
| 26 | $t->id_token; | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | Class represents access-token response | ||
| 31 | |||
| 32 | =head1 ACCESSORS | ||
| 33 | |||
| 34 | =head2 access_token | ||
| 35 | |||
| 36 | The access token issued by the authorization serve | ||
| 37 | |||
| 38 | =head2 expires_in | ||
| 39 | |||
| 40 | The lifetime in seconds of the access token | ||
| 41 | |||
| 42 | =head2 refresh_token | ||
| 43 | |||
| 44 | The refresh token, which can be used to obtain new access tokens using the same authorization grant | ||
| 45 | |||
| 46 | =head2 scope | ||
| 47 | |||
| 48 | The scope of the access token | ||
| 49 | |||
| 50 | =head2 id_token | ||
| 51 | |||
| 52 | ID Token value associated with the authenticated session | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Ryo Ito, E<lt>ritou.06@gmail.comE<gt> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | Copyright (C) 2012 by Ryo Ito | ||
| 61 | |||
| 62 | This library is free software; you can redistribute it and/or modify | ||
| 63 | it under the same terms as Perl itself, either Perl version 5.8.8 or, | ||
| 64 | at your option, any later version of Perl 5 you may have available. | ||
| 65 | |||
| 66 | =cut | ||
| 67 | |||
| 68 | 3 | 1; | |