CatalystX/OAuth2/ActionRole/Token.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« CatalystX/OAuth2/ActionRole/RequestInjector.pm ↑ Summary CatalystX/OAuth2/ClientContainer.pm »
1 package CatalystX::OAuth2::ActionRole::Token;
2 11 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 11 ▶use JSON::Any;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: A role for building token-building actions
6  
7 11 with 'CatalystX::OAuth2::ActionRole::RequestInjector';
8  
9 11 my $json = JSON::Any->new;
10  
11 after execute => sub {
12 7 ▶ my ( $self, $controller, $c ) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
13 7 $c->res->body( $json->objToJson( $c->req->oauth2->query_parameters ) );
14 11 };
15  
16 11 1;
17  
18 __END__
19  
20 =pod
21  
22 =head1 NAME
23  
24 CatalystX::OAuth2::ActionRole::Token - A role for building token-building actions
25  
26 =head1 VERSION
27  
28 version 0.001006
29  
30 =head1 AUTHOR
31  
32 Eden Cardim <edencardim@gmail.com>
33  
34 =head1 COPYRIGHT AND LICENSE
35  
36 This software is copyright (c) 2017 by Suretec Systems Ltd.
37  
38 This is free software; you can redistribute it and/or modify it under
39 the same terms as the Perl 5 programming language system itself.
40  
41 =cut
« CatalystX/OAuth2/ActionRole/RequestInjector.pm ↑ Summary CatalystX/OAuth2/ClientContainer.pm »