blib/lib/Mojolicious/Plugin/Web/Auth/Site/Runkeeper.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 86.3% 19 / 22 CC 1 SCAR 2.2
CC
1
Cov
94%
moniker
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Mojolicious::Plugin::Web::Auth::Site::Runkeeper;
5 1 $Mojolicious::Plugin::Web::Auth::Site::Runkeeper::VERSION = '0.000001';
6 1 ▶use Mojo::Base qw/Mojolicious::Plugin::Web::Auth::OAuth2/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 has access_token_url => 'https://runkeeper.com/apps/token';
9 1 has authorize_url => 'https://runkeeper.com/apps/authorize';
10 1 has response_type => 'code';
11 1 has user_info => 1;
12 1 has user_info_url => 'https://api.runkeeper.com/user';
13  
14 0 ▶sub moniker { 'runkeeper' }
Subroutine moniker: not called CC=1 SCAR=6.9
Pod undocumented
15  
16 1 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Mojolicious::Plugin::Web::Auth::Site::Runkeeper - Runkeeper OAuth Plugin for Mojolicious::Plugin::Web::Auth
25  
26 =head1 VERSION
27  
28 version 0.000001
29  
30 =head1 SYNOPSIS
31  
32 # Mojolicious
33 $self->plugin('Web::Auth',
34 module => 'Runkeeper',
35 key => 'Runkeeper consumer key',
36 secret => 'Runkeeper consumer secret',
37 on_finished => sub {
38 my ( $c, $access_token, $access_secret ) = @_;
39 ...
40 },
41 );
42  
43 # Mojolicious::Lite
44 plugin 'Web::Auth',
45 module => 'Runkeeper',
46 key => 'Runkeeper consumer key',
47 secret => 'Runkeeper consumer secret',
48 on_finished => sub {
49 my ( $c, $access_token, $access_secret ) = @_;
50 ...
51 };
52  
53  
54 # default authentication endpoint: /auth/runkeeper/authenticate
55 # default callback endpoint: /auth/runkeeper/callback
56  
57 =head1 DESCRIPTION
58  
59 This module adds L<Runkeeper|https://runkeeper.com/developer/healthgraph/overview> support to
60 L<Mojolicious::Plugin::Web::Auth>.
61  
62 =head1 AUTHOR
63  
64 Olaf Alders <olaf@wundercounter.com>
65  
66 =head1 COPYRIGHT AND LICENSE
67  
68 This software is copyright (c) 2016 by Olaf Alders.
69  
70 This is free software; you can redistribute it and/or modify it under
71 the same terms as the Perl 5 programming language system itself.
72  
73 =cut
74  
75 __END__
↑ Summary