summaryrefslogtreecommitdiffstats
path: root/includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base
diff options
context:
space:
mode:
Diffstat (limited to 'includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base')
-rw-r--r--includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base18
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base b/includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base
new file mode 100644
index 0000000..6d144b4
--- /dev/null
+++ b/includes/OAuth/.svn/pristine/23/23fb593a952ddf0685750f39140ccb05841a84b5.svn-base
@@ -0,0 +1,18 @@
+<?php
+
+class Google extends Oauth {
+
+ protected $_prefix = 'google';
+
+ protected $_authorize_url = 'https://accounts.google.com/o/oauth2/auth';
+ protected $_access_token_url = 'https://accounts.google.com/o/oauth2/token';
+
+ protected function authorize(Array $scope = array(), $scope_seperator = '+'){
+ parent::authorize($scope, $scope_seperator, '&response_type=code');
+ }
+
+ protected function requestAccessToken($method = 'POST', Array $params = array('grant_type' => 'authorization_code'), $returnType = 'json', Array $values = array('access_token', 'expires_in')){
+ parent::requestAccessToken($method, $params, $returnType, $values);
+ }
+
+} \ No newline at end of file