oauth2-server/tests/auth/PasswordGrantMissingPasswordCept.php
2014-07-27 22:51:00 +01:00

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();