Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class Gitter extends OAuth2Provider implements CSRFToken{ |
||
23 | |||
24 | public const SCOPE_FLOW = 'flow'; |
||
25 | public const SCOPE_PRIVATE = 'private'; |
||
26 | |||
27 | protected string $authURL = 'https://gitter.im/login/oauth/authorize'; |
||
28 | protected string $accessTokenURL = 'https://gitter.im/login/oauth/token'; |
||
29 | protected string $scopesDelimiter = ','; |
||
30 | protected string $apiURL = 'https://api.gitter.im'; |
||
31 | protected ?string $apiDocs = 'https://developer.gitter.im'; |
||
32 | protected ?string $applicationURL = 'https://developer.gitter.im/apps'; |
||
33 | |||
34 | protected array $defaultScopes = [ |
||
35 | self::SCOPE_FLOW, |
||
36 | self::SCOPE_PRIVATE, |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function me():ResponseInterface{ |
||
60 |