1 | <?php |
||
11 | class EloquaProvider extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | /** |
||
16 | * @return string |
||
17 | */ |
||
18 | 1 | public function getBaseAuthorizationUrl() |
|
22 | |||
23 | /** |
||
24 | * @param array $params |
||
25 | * @return string |
||
26 | */ |
||
27 | 1 | public function getBaseAccessTokenUrl(array $params) |
|
31 | |||
32 | /** |
||
33 | * @param AccessToken $token |
||
34 | * @return string |
||
35 | */ |
||
36 | 1 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | 1 | protected function getDefaultScopes() |
|
48 | |||
49 | /** |
||
50 | * Authorization and access tokens requests have to be signed with basic auth header |
||
51 | * @return array |
||
52 | */ |
||
53 | 1 | protected function getDefaultHeaders() |
|
57 | |||
58 | /** |
||
59 | * @param ResponseInterface $response |
||
60 | * @param array|string $data |
||
61 | * @throws IdentityProviderException |
||
62 | */ |
||
63 | 3 | protected function checkResponse(ResponseInterface $response, $data) |
|
82 | |||
83 | /** |
||
84 | * @param array $response |
||
85 | * @param AccessToken $token |
||
86 | * @return EloquaResourceOwner |
||
87 | */ |
||
88 | 1 | protected function createResourceOwner(array $response, AccessToken $token) |
|
94 | |||
95 | /** |
||
96 | * @return EloquaResourceOwner |
||
97 | */ |
||
98 | 1 | protected function getEloquaResourceOwnerPrototype() |
|
102 | } |
||
103 |