1 | <?php |
||
16 | class PasswordCredential extends Grant |
||
17 | { |
||
18 | /** @var string */ |
||
19 | private $username; |
||
20 | /** @var string */ |
||
21 | private $password; |
||
22 | |||
23 | /** |
||
24 | * @param string $username |
||
25 | * @param string $password |
||
26 | */ |
||
27 | public function __construct($username, $password) |
||
32 | |||
33 | /** |
||
34 | * @param Client $http |
||
35 | * @param AuthFactory $factory |
||
36 | * @param Scope $scope |
||
37 | * @return \Psr\Http\Message\ResponseInterface |
||
38 | */ |
||
39 | public function auth(Client $http, AuthFactory $factory, Scope $scope) |
||
50 | } |
||
51 |