1 | <?php |
||
19 | class Heroku extends AbstractService |
||
20 | { |
||
21 | /** |
||
22 | * Defined scopes |
||
23 | * @link https://devcenter.heroku.com/articles/oauth#scopes |
||
24 | */ |
||
25 | const SCOPE_GLOBAL = 'global'; |
||
26 | const SCOPE_IDENTITY = 'identity'; |
||
27 | const SCOPE_READ = 'read'; |
||
28 | const SCOPE_WRITE = 'write'; |
||
29 | const SCOPE_READ_PROTECTED = 'read-protected'; |
||
30 | const SCOPE_WRITE_PROTECTED = 'write-protected'; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getAuthorizationEndpoint() |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getAccessTokenEndpoint() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | protected function getAuthorizationMethod() |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | protected function parseAccessTokenResponse($responseBody) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | protected function getExtraOAuthHeaders() |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | protected function getExtraApiHeaders() |
||
123 | } |
||
124 |