summaryrefslogtreecommitdiffstats
path: root/includes/OAuth/Google.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/OAuth/Google.php')
-rw-r--r--includes/OAuth/Google.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/OAuth/Google.php b/includes/OAuth/Google.php
new file mode 100644
index 0000000..6d144b4
--- /dev/null
+++ b/includes/OAuth/Google.php
@@ -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