Permalink
Browse files

Fixed issue with OAuth_Provider_Google that got lost when cleaning up…

… providers
  • Loading branch information...
1 parent f0f5950 commit f168eac30bec24695a4b098ce86ff3220bad39e1 @shadowhand shadowhand committed Jul 4, 2010
Showing with 16 additions and 1 deletion.
  1. +16 −1 classes/kohana/oauth/provider/google.php
@@ -20,14 +20,29 @@ class Kohana_OAuth_Provider_Google extends OAuth_Provider {
protected $signature = 'HMAC-SHA1';
+ public function url_request_token()
+ {
+ return 'https://www.google.com/accounts/OAuthGetRequestToken';
+ }
+
+ public function url_authorize()
+ {
+ return 'https://www.google.com/accounts/OAuthAuthorizeToken';
+ }
+
+ public function url_access_token()
+ {
+ return 'https://www.google.com/accounts/OAuthGetAccessToken';
+ }
+
public function request_token(OAuth_Consumer $consumer, array $params = NULL)
{
if ( ! isset($params['scope']))
{
// All request tokens must specify the data scope to access
// http://code.google.com/apis/accounts/docs/OAuth.html#prepScope
throw new Kohana_OAuth_Exception('Required parameter to not passed: :param', array(
- ':param' => 'scope';
+ ':param' => 'scope',
));
}

0 comments on commit f168eac

Please sign in to comment.