| Total Complexity | 8 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 94.74% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class Slack extends \SocialConnect\OAuth2\AbstractProvider |
||
| 16 | { |
||
| 17 | const NAME = 'slack'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | 4 | public function getBaseUri() |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 2 | public function getAuthorizeUri() |
|
| 31 | { |
||
| 32 | 2 | return 'https://slack.com/oauth/authorize'; |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 2 | public function getRequestTokenUri() |
|
| 39 | { |
||
| 40 | 2 | return 'https://slack.com/api/oauth.access'; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 3 | public function getName() |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | 3 | public function prepareRequest(string $method, string $uri, array &$headers, array &$query, ?AccessTokenInterface $accessToken = null): void |
|
| 58 | } |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | 3 | public function getIdentity(AccessTokenInterface $accessToken) |
|
| 85 |