1 | <?php |
||
18 | class CodeGrant extends Grant |
||
19 | { |
||
20 | /** @var string */ |
||
21 | private $code; |
||
22 | /** @var string */ |
||
23 | private $redirect_uri; |
||
24 | |||
25 | /** |
||
26 | * @param string $code |
||
27 | * @param string $redirect_uri |
||
28 | */ |
||
29 | public function __construct($code, $redirect_uri) |
||
34 | |||
35 | /** |
||
36 | * @param Mastodon\Client $client |
||
37 | * @param AuthFactory $auth |
||
38 | * @param Scope $scope |
||
39 | * @param string $callback_uri |
||
40 | * @return string |
||
41 | */ |
||
42 | public static function getRedirectUrl(Mastodon\Client $client, Mastodon\Service\AuthFactory $auth, Scope $scope, $callback_uri) |
||
51 | |||
52 | /** |
||
53 | * @param Client $http |
||
54 | * @param AuthFactory $factory |
||
55 | * @param Scope $scope |
||
56 | * @return \Psr\Http\Message\ResponseInterface |
||
57 | */ |
||
58 | public function auth(Client $http, AuthFactory $factory, Scope $scope) |
||
68 | } |
||
69 |