1 | <?php |
||
8 | class Bitbucket extends AbstractServer |
||
9 | { |
||
10 | /** |
||
11 | * Checks a provider response for errors. |
||
12 | * |
||
13 | * @param ResponseInterface $response |
||
14 | * @param array|string $data Parsed response data |
||
15 | * |
||
16 | * @return void |
||
17 | * @throws IdentityProviderException |
||
18 | */ |
||
19 | 2 | protected function checkResponse(ResponseInterface $response, $data) |
|
23 | |||
24 | /** |
||
25 | * Generates a resource owner object from a successful resource owner |
||
26 | * details request. |
||
27 | * |
||
28 | * @param array $response |
||
29 | * @param TokenCredentials $tokenCredentials |
||
30 | * |
||
31 | * @return ResourceOwnerInterface |
||
32 | */ |
||
33 | 2 | protected function createResourceOwner(array $response, TokenCredentials $tokenCredentials) |
|
37 | |||
38 | /** |
||
39 | * Gets the URL for redirecting the resource owner to authorize the client. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | 2 | protected function getBaseAuthorizationUrl(array $options = array()) |
|
47 | |||
48 | /** |
||
49 | * Gets the URL for retrieving temporary credentials. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 2 | protected function getBaseTemporaryCredentialsUrl() |
|
57 | |||
58 | /** |
||
59 | * Gets the URL retrieving token credentials. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 2 | protected function getBaseTokenCredentialsUrl() |
|
67 | |||
68 | /** |
||
69 | * Gets the URL for retrieving user details. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 2 | protected function getResourceOwnerDetailsUrl(TokenCredentials $tokenCredentials) |
|
77 | } |
||
78 |