Rewrite tests for OAuth2 validate and auth code complete steps [skip ci]

This commit is contained in:
ErickSkrauch
2019-09-06 02:32:57 +03:00
parent 0b63dc2d84
commit 4dc2a3025b
4 changed files with 193 additions and 177 deletions

View File

@ -3,6 +3,7 @@ declare(strict_types=1);
namespace api\modules\oauth\models;
use api\components\OAuth2\Entities\UserEntity;
use api\rbac\Permissions as P;
use common\models\Account;
use common\models\OauthClient;
@ -105,6 +106,7 @@ class OauthProcess {
}
}
$authRequest->setUser(new UserEntity($account->id));
$responseObj = $this->server->completeAuthorizationRequest($authRequest, new Response(200));
$response = [