oauth2-server/tests/auth/PasswordGrantMissingPasswordCept.php

11 lines
350 B
PHP
Raw Normal View History

2014-07-28 03:21:00 +05:30
<?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();