| 1 | package OIDC::Lite::Model::AuthInfo; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 6 | ▶ | use parent 'OAuth::Lite2::Model::AuthInfo'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 6 | ▶ | use base 'Class::Accessor::Fast'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 6 | __PACKAGE__->mk_accessors(qw( | |||||||||
| 11 | id_token | ||||||||||
| 12 | userinfo_claims | ||||||||||
| 13 | )); | ||||||||||
| 14 | |||||||||||
| 15 | 6 | ▶ | use Params::Validate; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | |||||||||||
| 17 | sub new { | ||||||||||
| 18 | 22 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 22 | ▶ | my @args = @_ == 1 ? %{$_[0]} : @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 22 | my %params = Params::Validate::validate_with( | |||||||||
| 21 | params => \@args, | ||||||||||
| 22 | spec => { | ||||||||||
| 23 | id => 1, | ||||||||||
| 24 | user_id => 1, | ||||||||||
| 25 | client_id => 1, | ||||||||||
| 26 | scope => { optional => 1 }, | ||||||||||
| 27 | refresh_token => { optional => 1 }, | ||||||||||
| 28 | code => { optional => 1 }, | ||||||||||
| 29 | redirect_uri => { optional => 1 }, | ||||||||||
| 30 | server_state => { optional => 1 }, | ||||||||||
| 31 | id_token => { optional => 1 }, | ||||||||||
| 32 | userinfo_claims => { optional => 1 }, | ||||||||||
| 33 | }, | ||||||||||
| 34 | allow_extra => 1, | ||||||||||
| 35 | ); | ||||||||||
| 36 | 22 | my $self = bless \%params, $class; | |||||||||
| 37 | 22 | return $self; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | =head1 NAME | ||||||||||
| 41 | |||||||||||
| 42 | OIDC::Lite::Model::AuthInfo - model class that represents authorization info. | ||||||||||
| 43 | |||||||||||
| 44 | =head1 ACCESSORS | ||||||||||
| 45 | |||||||||||
| 46 | =head2 id | ||||||||||
| 47 | |||||||||||
| 48 | Identifier of this authorization info | ||||||||||
| 49 | |||||||||||
| 50 | =head2 user_id | ||||||||||
| 51 | |||||||||||
| 52 | User identifier for resource owner | ||||||||||
| 53 | |||||||||||
| 54 | =head2 client_id | ||||||||||
| 55 | |||||||||||
| 56 | CLient identifier for obtain token | ||||||||||
| 57 | |||||||||||
| 58 | =head2 scope | ||||||||||
| 59 | |||||||||||
| 60 | Scope string for authorization info | ||||||||||
| 61 | |||||||||||
| 62 | =head2 refresh_token | ||||||||||
| 63 | |||||||||||
| 64 | Refresh token related with authorization info | ||||||||||
| 65 | |||||||||||
| 66 | =head2 code | ||||||||||
| 67 | |||||||||||
| 68 | Authorization code related with authorization info | ||||||||||
| 69 | |||||||||||
| 70 | =head2 redirect_uri | ||||||||||
| 71 | |||||||||||
| 72 | Redirect URI related with authorization info | ||||||||||
| 73 | |||||||||||
| 74 | =head2 server_state | ||||||||||
| 75 | |||||||||||
| 76 | Server State for CSRF Protection | ||||||||||
| 77 | |||||||||||
| 78 | =head2 id_token | ||||||||||
| 79 | |||||||||||
| 80 | ID Token string which was encoded to JWT format | ||||||||||
| 81 | |||||||||||
| 82 | =head2 userinfo_claims | ||||||||||
| 83 | |||||||||||
| 84 | Claims which RP requires in UserInfo Endpoint | ||||||||||
| 85 | Type is array refference | ||||||||||
| 86 | |||||||||||
| 87 | =head1 AUTHOR | ||||||||||
| 88 | |||||||||||
| 89 | Ryo Ito, E<lt>ritou.06@gmail.comE<gt> | ||||||||||
| 90 | |||||||||||
| 91 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 92 | |||||||||||
| 93 | Copyright (C) 2012 by Ryo Ito | ||||||||||
| 94 | |||||||||||
| 95 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 96 | it under the same terms as Perl itself, either Perl version 5.8.8 or, | ||||||||||
| 97 | at your option, any later version of Perl 5 you may have available. | ||||||||||
| 98 | |||||||||||
| 99 | =cut | ||||||||||
| 100 | |||||||||||
| 101 | 6 | 1; | |||||||||
| 102 | |||||||||||