| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function auth(Client $http, AuthFactory $factory, Scope $scope) |
||
| 40 | { |
||
| 41 | return $http->request('POST', static::getPathToOAuthToken($factory->client), [ |
||
| 42 | 'form_params' => [ |
||
| 43 | 'grant_type' => 'password', |
||
| 44 | 'username' => $this->username, |
||
| 45 | 'password' => $this->password, |
||
| 46 | 'scope' => (string)$scope, |
||
| 47 | ] + static::getFormParams($factory), |
||
| 48 | ]); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |