File Coverage

lib/OAuthomatic/ServerDef/BitBucket.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package OAuthomatic::ServerDef::BitBucket;
2             # ABSTRACT: OAuth parameters for BitBucket
3              
4 1     1   523 use strict;
  1         1  
  1         31  
5 1     1   3 use warnings;
  1         1  
  1         24  
6 1     1   280 use OAuthomatic::Server;
  0            
  0            
7              
8              
9             sub server {
10             return OAuthomatic::Server->new(
11             oauth_temporary_url => 'https://bitbucket.org/api/1.0/oauth/request_token',
12             oauth_authorize_page => 'https://bitbucket.org/api/1.0/oauth/authenticate',
13             oauth_token_url => 'https://bitbucket.org/api/1.0/oauth/access_token',
14              
15             site_name => 'BitBucket',
16             site_client_creation_desc => "BitBucket OAuth management page",
17             # No simple URL
18             # site_client_creation_page => https://bitbucket.org/account/user/YOUR-BITBUCKET-NICK/api
19             site_client_creation_help => <<"END",
20             Log into BitBucket. Select <Manage accont> (from the popup on your
21             avatar in right-top corner), then <OAuth> (Access Management section
22             in the left menu). Click <Add consumer> button and fill the form. Use
23             <Key> as client key and <Secret> as client secret.",
24             END
25             );
26             }
27              
28             1;
29              
30             __END__
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             OAuthomatic::ServerDef::BitBucket - OAuth parameters for BitBucket
39              
40             =head1 VERSION
41              
42             version 0.0201
43              
44             =head1 DESCRIPTION
45              
46             Definition of L<OAuthomatic::Server> for L<http://bitbucket.org>. Allows
47             one to specify C<server =E<gt> 'BitBucket'> while constructing L<OAuthomatic> objects.
48              
49             =head1 AUTHOR
50              
51             Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
52              
53             =head1 COPYRIGHT AND LICENSE
54              
55             This software is copyright (c) 2015 by Marcin Kasperski.
56              
57             This is free software; you can redistribute it and/or modify it under
58             the same terms as the Perl 5 programming language system itself.
59              
60             =cut