Skip to content

Commit

Permalink
more perldoc tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
leejo committed Apr 11, 2016
1 parent 4b7c791 commit c326624
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
Revision history for Net-OAuth2-AuthorizationServer

0.01 2016-04-11
0.03 2016-04-11
- First release, broken out of Mojolicious::Plugin::OAuth2::Server
for better abstraction and decoupling from the Mojolicious framework.
Should also allow tidying up of method args and easier additions of
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ Authorization Server

# VERSION

0.02
0.03

# SYNOPSIS

Expand Down
4 changes: 2 additions & 2 deletions lib/Net/OAuth2/AuthorizationServer.pm
Expand Up @@ -11,7 +11,7 @@ Authorization Server
=head1 VERSION
0.02
0.03
=head1 SYNOPSIS
Expand All @@ -38,7 +38,7 @@ use Types::Standard qw/ :all /;

use Net::OAuth2::AuthorizationServer::AuthorizationCodeGrant;

our $VERSION = '0.02';
our $VERSION = '0.03';

=head2 auth_code_grant
Expand Down
13 changes: 3 additions & 10 deletions lib/Net/OAuth2/AuthorizationServer/AuthorizationCodeGrant.pm
Expand Up @@ -1101,16 +1101,6 @@ Having defined the above callbacks, customized to your app/data store/etc, you
can configuration the module:
my $Grant = Net::OAuth2::AuthorizationServer::AuthorizationCodeGrant->new(
clients => {
TrendyNewService => {
client_secret => 'TopSecretClientSecret',
scopes => {
post_images => 1,
annoy_friends => 1,
},
},
...
}
login_resource_owner_cb => $resource_owner_logged_in_sub,
confirm_by_resource_owner_cb => $resource_owner_confirm_scopes_sub,
verify_client_cb => $verify_client_sub,
Expand All @@ -1120,6 +1110,9 @@ can configuration the module:
verify_access_token_cb => $verify_access_token_sub,
);
Note because we are using the verify_client_cb above we do not need to pass
a hashref of clients - this will be handled in the verify_client_cb sub
=head1 EXAMPLES
There are more examples included with this distribution in the examples/ dir.
Expand Down

0 comments on commit c326624

Please sign in to comment.