1 | <?php |
||
10 | class ExternalOauthProvider extends AbstractProvider |
||
11 | { |
||
12 | protected $base_url; |
||
13 | |||
14 | protected $scope_separator; |
||
15 | |||
16 | protected $access_token; |
||
17 | |||
18 | public function __construct(array $options = [], array $collaborators = []) |
||
24 | |||
25 | public function getAccessToken($grant, array $options = []): AccessToken |
||
33 | |||
34 | public function getBaseAuthorizationUrl(): string |
||
38 | |||
39 | public function getBaseAccessTokenUrl(array $params): string |
||
43 | |||
44 | public function getResourceOwnerDetailsUrl(AccessToken $token): string |
||
48 | |||
49 | protected function getDefaultScopes(): string |
||
53 | |||
54 | protected function checkResponse(ResponseInterface $response, $data): void |
||
63 | |||
64 | protected function createResourceOwner(array $response, AccessToken $token): ExternalOauthResourceOwner |
||
68 | |||
69 | protected function getScopeSeparator(): string |
||
73 | |||
74 | protected function getAuthorizationHeaders($token = null): array |
||
84 | } |
||
85 |