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