1 | <?php |
||
20 | class Heroku extends AbstractService |
||
21 | { |
||
22 | /** |
||
23 | * Defined scopes. |
||
24 | * |
||
25 | * @see https://devcenter.heroku.com/articles/oauth#scopes |
||
26 | */ |
||
27 | const SCOPE_GLOBAL = 'global'; |
||
28 | const SCOPE_IDENTITY = 'identity'; |
||
29 | const SCOPE_READ = 'read'; |
||
30 | const SCOPE_WRITE = 'write'; |
||
31 | const SCOPE_READ_PROTECTED = 'read-protected'; |
||
32 | const SCOPE_WRITE_PROTECTED = 'write-protected'; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getAuthorizationEndpoint() |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getAccessTokenEndpoint() |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | protected function getAuthorizationMethod() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | protected function parseAccessTokenResponse($responseBody) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | protected function getExtraOAuthHeaders() |
||
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | protected function getExtraApiHeaders() |
||
124 | } |
||
125 |