mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
11 lines
350 B
PHP
11 lines
350 B
PHP
|
<?php
|
||
|
$I = new AuthTester($scenario);
|
||
|
$I->wantTo('get an access token with resource owner credentials');
|
||
|
$I->sendPOST('other_grants.php/access_token', [
|
||
|
'client_id' => 'testclient',
|
||
|
'client_secret' => 'secret',
|
||
|
'grant_type' => 'password',
|
||
|
'username' => 'alexbilbie'
|
||
|
]);
|
||
|
$I->seeResponseCodeIs(400);
|
||
|
$I->seeResponseIsJson();
|