1 | <?php namespace nyx\auth\id\protocols\oauth2\providers; |
||
16 | class Twitch extends oauth2\Provider |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritDoc} |
||
20 | */ |
||
21 | const URL_AUTHORIZE = 'https://api.twitch.tv/kraken/oauth2/authorize'; |
||
22 | const URL_EXCHANGE = 'https://api.twitch.tv/kraken/oauth2/token'; |
||
23 | const URL_IDENTIFY = 'https://api.twitch.tv/kraken/user'; |
||
24 | |||
25 | /** |
||
26 | * {@inheritDoc} |
||
27 | */ |
||
28 | const IDENTITY = auth\id\identities\Twitch::class; |
||
29 | |||
30 | /** |
||
31 | * {@inheritDoc} |
||
32 | */ |
||
33 | protected $defaultScopes = ['user_read']; |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | protected function getDefaultRequestOptions(auth\interfaces\Token $token = null) : array |
||
54 | } |
||
55 |