PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Oauth2.php

Oauth2.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Oauth2.php

502 lines 10.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Oauth2 (v2).
18 *
19 * <p>
20 * Lets you access OAuth2 protocol related APIs.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_Oauth2 extends Google_Service
30 {
31 /** Know the list of people in your circles, your age range, and language. */
32 const PLUS_LOGIN =
33 "https://www.googleapis.com/auth/plus.login";
34 /** Know who you are on Google. */
35 const PLUS_ME =
36 "https://www.googleapis.com/auth/plus.me";
37 /** View your email address. */
38 const USERINFO_EMAIL =
39 "https://www.googleapis.com/auth/userinfo.email";
40 /** View your basic profile info. */
41 const USERINFO_PROFILE =
42 "https://www.googleapis.com/auth/userinfo.profile";
43
44 public $userinfo;
45 public $userinfo_v2_me;
46 private $base_methods;
47
48 /**
49 * Constructs the internal representation of the Oauth2 service.
50 *
51 * @param Google_Client $client
52 */
53 public function __construct(Google_Client $client)
54 {
55 parent::__construct($client);
56 $this->rootUrl = 'https://www.googleapis.com/';
57 $this->servicePath = '';
58 $this->version = 'v2';
59 $this->serviceName = 'oauth2';
60
61 $this->userinfo = new Google_Service_Oauth2_Userinfo_Resource(
62 $this,
63 $this->serviceName,
64 'userinfo',
65 array(
66 'methods' => array(
67 'get' => array(
68 'path' => 'oauth2/v2/userinfo',
69 'httpMethod' => 'GET',
70 'parameters' => array(),
71 ),
72 )
73 )
74 );
75 $this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource(
76 $this,
77 $this->serviceName,
78 'me',
79 array(
80 'methods' => array(
81 'get' => array(
82 'path' => 'userinfo/v2/me',
83 'httpMethod' => 'GET',
84 'parameters' => array(),
85 ),
86 )
87 )
88 );
89 $this->base_methods = new Google_Service_Resource(
90 $this,
91 $this->serviceName,
92 '',
93 array(
94 'methods' => array(
95 'getCertForOpenIdConnect' => array(
96 'path' => 'oauth2/v2/certs',
97 'httpMethod' => 'GET',
98 'parameters' => array(),
99 ),'tokeninfo' => array(
100 'path' => 'oauth2/v2/tokeninfo',
101 'httpMethod' => 'POST',
102 'parameters' => array(
103 'access_token' => array(
104 'location' => 'query',
105 'type' => 'string',
106 ),
107 'id_token' => array(
108 'location' => 'query',
109 'type' => 'string',
110 ),
111 'token_handle' => array(
112 'location' => 'query',
113 'type' => 'string',
114 ),
115 ),
116 ),
117 )
118 )
119 );
120 }
121 /**
122 * (getCertForOpenIdConnect)
123 *
124 * @param array $optParams Optional parameters.
125 * @return Google_Service_Oauth2_Jwk
126 */
127 public function getCertForOpenIdConnect($optParams = array())
128 {
129 $params = array();
130 $params = array_merge($params, $optParams);
131 return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk");
132 }
133 /**
134 * (tokeninfo)
135 *
136 * @param array $optParams Optional parameters.
137 *
138 * @opt_param string access_token
139 * @opt_param string id_token
140 * @opt_param string token_handle
141 * @return Google_Service_Oauth2_Tokeninfo
142 */
143 public function tokeninfo($optParams = array())
144 {
145 $params = array();
146 $params = array_merge($params, $optParams);
147 return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo");
148 }
149 }
150
151
152 /**
153 * The "userinfo" collection of methods.
154 * Typical usage is:
155 * <code>
156 * $oauth2Service = new Google_Service_Oauth2(...);
157 * $userinfo = $oauth2Service->userinfo;
158 * </code>
159 */
160 class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource
161 {
162
163 /**
164 * (userinfo.get)
165 *
166 * @param array $optParams Optional parameters.
167 * @return Google_Service_Oauth2_Userinfoplus
168 */
169 public function get($optParams = array())
170 {
171 $params = array();
172 $params = array_merge($params, $optParams);
173 return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
174 }
175 }
176
177 /**
178 * The "v2" collection of methods.
179 * Typical usage is:
180 * <code>
181 * $oauth2Service = new Google_Service_Oauth2(...);
182 * $v2 = $oauth2Service->v2;
183 * </code>
184 */
185 class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource
186 {
187 }
188
189 /**
190 * The "me" collection of methods.
191 * Typical usage is:
192 * <code>
193 * $oauth2Service = new Google_Service_Oauth2(...);
194 * $me = $oauth2Service->me;
195 * </code>
196 */
197 class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource
198 {
199
200 /**
201 * (me.get)
202 *
203 * @param array $optParams Optional parameters.
204 * @return Google_Service_Oauth2_Userinfoplus
205 */
206 public function get($optParams = array())
207 {
208 $params = array();
209 $params = array_merge($params, $optParams);
210 return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
211 }
212 }
213
214
215
216
217 class Google_Service_Oauth2_Jwk extends Google_Collection
218 {
219 protected $collection_key = 'keys';
220 protected $internal_gapi_mappings = array(
221 );
222 protected $keysType = 'Google_Service_Oauth2_JwkKeys';
223 protected $keysDataType = 'array';
224
225
226 public function setKeys($keys)
227 {
228 $this->keys = $keys;
229 }
230 public function getKeys()
231 {
232 return $this->keys;
233 }
234 }
235
236 class Google_Service_Oauth2_JwkKeys extends Google_Model
237 {
238 protected $internal_gapi_mappings = array(
239 );
240 public $alg;
241 public $e;
242 public $kid;
243 public $kty;
244 public $n;
245 public $use;
246
247
248 public function setAlg($alg)
249 {
250 $this->alg = $alg;
251 }
252 public function getAlg()
253 {
254 return $this->alg;
255 }
256 public function setE($e)
257 {
258 $this->e = $e;
259 }
260 public function getE()
261 {
262 return $this->e;
263 }
264 public function setKid($kid)
265 {
266 $this->kid = $kid;
267 }
268 public function getKid()
269 {
270 return $this->kid;
271 }
272 public function setKty($kty)
273 {
274 $this->kty = $kty;
275 }
276 public function getKty()
277 {
278 return $this->kty;
279 }
280 public function setN($n)
281 {
282 $this->n = $n;
283 }
284 public function getN()
285 {
286 return $this->n;
287 }
288 public function setUse($use)
289 {
290 $this->use = $use;
291 }
292 public function getUse()
293 {
294 return $this->use;
295 }
296 }
297
298 class Google_Service_Oauth2_Tokeninfo extends Google_Model
299 {
300 protected $internal_gapi_mappings = array(
301 "accessType" => "access_type",
302 "expiresIn" => "expires_in",
303 "issuedTo" => "issued_to",
304 "tokenHandle" => "token_handle",
305 "userId" => "user_id",
306 "verifiedEmail" => "verified_email",
307 );
308 public $accessType;
309 public $audience;
310 public $email;
311 public $expiresIn;
312 public $issuedTo;
313 public $scope;
314 public $tokenHandle;
315 public $userId;
316 public $verifiedEmail;
317
318
319 public function setAccessType($accessType)
320 {
321 $this->accessType = $accessType;
322 }
323 public function getAccessType()
324 {
325 return $this->accessType;
326 }
327 public function setAudience($audience)
328 {
329 $this->audience = $audience;
330 }
331 public function getAudience()
332 {
333 return $this->audience;
334 }
335 public function setEmail($email)
336 {
337 $this->email = $email;
338 }
339 public function getEmail()
340 {
341 return $this->email;
342 }
343 public function setExpiresIn($expiresIn)
344 {
345 $this->expiresIn = $expiresIn;
346 }
347 public function getExpiresIn()
348 {
349 return $this->expiresIn;
350 }
351 public function setIssuedTo($issuedTo)
352 {
353 $this->issuedTo = $issuedTo;
354 }
355 public function getIssuedTo()
356 {
357 return $this->issuedTo;
358 }
359 public function setScope($scope)
360 {
361 $this->scope = $scope;
362 }
363 public function getScope()
364 {
365 return $this->scope;
366 }
367 public function setTokenHandle($tokenHandle)
368 {
369 $this->tokenHandle = $tokenHandle;
370 }
371 public function getTokenHandle()
372 {
373 return $this->tokenHandle;
374 }
375 public function setUserId($userId)
376 {
377 $this->userId = $userId;
378 }
379 public function getUserId()
380 {
381 return $this->userId;
382 }
383 public function setVerifiedEmail($verifiedEmail)
384 {
385 $this->verifiedEmail = $verifiedEmail;
386 }
387 public function getVerifiedEmail()
388 {
389 return $this->verifiedEmail;
390 }
391 }
392
393 class Google_Service_Oauth2_Userinfoplus extends Google_Model
394 {
395 protected $internal_gapi_mappings = array(
396 "familyName" => "family_name",
397 "givenName" => "given_name",
398 "verifiedEmail" => "verified_email",
399 );
400 public $email;
401 public $familyName;
402 public $gender;
403 public $givenName;
404 public $hd;
405 public $id;
406 public $link;
407 public $locale;
408 public $name;
409 public $picture;
410 public $verifiedEmail;
411
412
413 public function setEmail($email)
414 {
415 $this->email = $email;
416 }
417 public function getEmail()
418 {
419 return $this->email;
420 }
421 public function setFamilyName($familyName)
422 {
423 $this->familyName = $familyName;
424 }
425 public function getFamilyName()
426 {
427 return $this->familyName;
428 }
429 public function setGender($gender)
430 {
431 $this->gender = $gender;
432 }
433 public function getGender()
434 {
435 return $this->gender;
436 }
437 public function setGivenName($givenName)
438 {
439 $this->givenName = $givenName;
440 }
441 public function getGivenName()
442 {
443 return $this->givenName;
444 }
445 public function setHd($hd)
446 {
447 $this->hd = $hd;
448 }
449 public function getHd()
450 {
451 return $this->hd;
452 }
453 public function setId($id)
454 {
455 $this->id = $id;
456 }
457 public function getId()
458 {
459 return $this->id;
460 }
461 public function setLink($link)
462 {
463 $this->link = $link;
464 }
465 public function getLink()
466 {
467 return $this->link;
468 }
469 public function setLocale($locale)
470 {
471 $this->locale = $locale;
472 }
473 public function getLocale()
474 {
475 return $this->locale;
476 }
477 public function setName($name)
478 {
479 $this->name = $name;
480 }
481 public function getName()
482 {
483 return $this->name;
484 }
485 public function setPicture($picture)
486 {
487 $this->picture = $picture;
488 }
489 public function getPicture()
490 {
491 return $this->picture;
492 }
493 public function setVerifiedEmail($verifiedEmail)
494 {
495 $this->verifiedEmail = $verifiedEmail;
496 }
497 public function getVerifiedEmail()
498 {
499 return $this->verifiedEmail;
500 }
501 }
502