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

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace api\components\OAuth2\Entities;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\UserEntityInterface;
class UserEntity implements UserEntityInterface {
use EntityTrait;
public function __construct($id) {
$this->identifier = $id;
}
}