1 | <?php |
||
11 | class Google extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | /** |
||
16 | * @var string If set, this will be sent to google as the "access_type" parameter. |
||
17 | * @link https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters |
||
18 | */ |
||
19 | protected $accessType; |
||
20 | |||
21 | /** |
||
22 | * @var string If set, this will be sent to google as the "hd" parameter. |
||
23 | * @link https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters |
||
24 | */ |
||
25 | protected $hostedDomain; |
||
26 | |||
27 | /** |
||
28 | * @var string If set, this will be sent to google as the "prompt" parameter. |
||
29 | * @link https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters |
||
30 | */ |
||
31 | protected $prompt; |
||
32 | |||
33 | /** |
||
34 | * @var array List of scopes that will be used for authentication. |
||
35 | * @link https://developers.google.com/identity/protocols/googlescopes |
||
36 | */ |
||
37 | protected $scopes = []; |
||
38 | |||
39 | public function getBaseAuthorizationUrl() |
||
43 | |||
44 | public function getBaseAccessTokenUrl(array $params) |
||
48 | |||
49 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
||
53 | |||
54 | protected function getAuthorizationParameters(array $options) |
||
80 | |||
81 | protected function getDefaultScopes() |
||
90 | |||
91 | protected function getScopeSeparator() |
||
95 | |||
96 | protected function checkResponse(ResponseInterface $response, $data) |
||
114 | |||
115 | protected function createResourceOwner(array $response, AccessToken $token) |
||
123 | |||
124 | /** |
||
125 | * @throws HostedDomainException If the domain does not match the configured domain. |
||
126 | */ |
||
127 | protected function assertMatchingDomain($hostedDomain) |
||
146 | } |
||
147 |