CatalystX/OAuth2/Grant.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« CatalystX/OAuth2/ClientContainer.pm ↑ Summary CatalystX/OAuth2/Request.pm »
1 package CatalystX::OAuth2::Grant;
2 13 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 13 with 'CatalystX::OAuth2';
5  
6 # ABSTRACT: A role for building oauth2 grant objects
7  
8 13 requires 'next_action_uri';
9  
10 13 has response_type => ( is => 'ro', required => 1 );
11 13 has client_id => ( is => 'ro', required => 1 );
12 13 has scope => ( is => 'ro', predicate => 'has_scope' );
13 13 has state => ( is => 'ro', predicate => 'has_state' );
14  
15 around _params => sub {
16 17 ▶ my $orig = shift;
Subroutine __ANON__: called CC=1 SCAR=0.0
17 17 return $orig->(@_), qw(response_type scope state client_id)
18 13 };
19  
20 13 1;
21  
22 __END__
23  
24 =pod
25  
26 =head1 NAME
27  
28 CatalystX::OAuth2::Grant - A role for building oauth2 grant objects
29  
30 =head1 VERSION
31  
32 version 0.001006
33  
34 =head1 AUTHOR
35  
36 Eden Cardim <edencardim@gmail.com>
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 This software is copyright (c) 2017 by Suretec Systems Ltd.
41  
42 This is free software; you can redistribute it and/or modify it under
43 the same terms as the Perl 5 programming language system itself.
44  
45 =cut
« CatalystX/OAuth2/ClientContainer.pm ↑ Summary CatalystX/OAuth2/Request.pm »