Browse files

Made type for scope match specification (string with spaces)

  • Loading branch information...
1 parent d5ad4a3 commit d900df492c0994c376d3ba5a65b44fb9f1663b44 @robin13 committed Dec 18, 2011
Showing with 11 additions and 3 deletions.
  1. +8 −0 TODO
  2. +3 −3 lib/Net/OAuth2/Moosey/Client.pm
View
8 TODO
@@ -0,0 +1,8 @@
+2011-12-12 from David Ashirov
+ It seems the store is keyed on the application’s identity instead of the OAuth principles.
+ In my case, I’m planning to access multiple user’s private data and would want to keep the
+ codes/tokens keyed by UserID ( retrieved via https://www.googleapis.com/auth/userinfo.profile
+ permission scope )
+
+TODO: RCL 2011-12-18 Agreed - the token_store is not very robust or flexible. Should consider
+implementing a token store which allows more generice storage (Cache::XXX family?)
View
6 lib/Net/OAuth2/Moosey/Client.pm
@@ -7,11 +7,11 @@ Net::OAuth2::Moosey::Client - OAuth 2.0 client for perl
=head1 VERSION
-0.02
+0.03
=cut
-our $VERSION = '0.02';
+our $VERSION = '0.03';
=head1 DESCRIPTION
@@ -199,7 +199,7 @@ The access token object which manages always having a fresh token ready for you.
has 'client_id' => ( is => 'ro', isa => 'Str', );
has 'client_secret' => ( is => 'ro', isa => 'Str', );
-has 'scope' => ( is => 'ro', isa => Uri, coerce => 1, );
+has 'scope' => ( is => 'ro', isa => 'Str' );
has 'site_url_base' => ( is => 'ro', isa => Uri, coerce => 1, );
has 'access_token_url_base' => ( is => 'ro', isa => Uri, coerce => 1, );
has 'authorize_url_base' => ( is => 'ro', isa => Uri, coerce => 1, );

0 comments on commit d900df4

Please sign in to comment.