1 | <?php |
||
15 | class Heroku extends AbstractService |
||
16 | { |
||
17 | /** |
||
18 | * Defined scopes |
||
19 | * @link https://devcenter.heroku.com/articles/oauth#scopes |
||
20 | */ |
||
21 | const SCOPE_GLOBAL = 'global'; |
||
22 | const SCOPE_IDENTITY = 'identity'; |
||
23 | const SCOPE_READ = 'read'; |
||
24 | const SCOPE_WRITE = 'write'; |
||
25 | const SCOPE_READ_PROTECTED = 'read-protected'; |
||
26 | const SCOPE_WRITE_PROTECTED = 'write-protected'; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | protected function init() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getAuthorizationEndpoint() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getAccessTokenEndpoint() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | protected function getAuthorizationMethod() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | protected function parseAccessTokenResponse($responseBody) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | protected function getExtraOAuthHeaders() |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | protected function getExtraApiHeaders() |
||
112 | } |
||
113 |