summaryrefslogtreecommitdiffstats
path: root/includes/OAuth/.svn/pristine/23
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-06-01 20:10:36 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-06-01 20:10:36 -0500
commit951330c9f83c8c8ee98f65fdccb5797e2e59d1f3 (patch)
treefc7b196ca0d91c1c71dcd945aa9667c7af0134fa /includes/OAuth/.svn/pristine/23
parente58a3b8b3702b22c903b02a9b4fa1020d6797459 (diff)
downloadpathery-951330c9f83c8c8ee98f65fdccb5797e2e59d1f3.tar.xz
A partial commit of the auth stuff, in case my upcoming changes break anything
Diffstat (limited to 'includes/OAuth/.svn/pristine/23')
-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