2019-08-23 11:28:04 +03:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
namespace common\components\OAuth2\Repositories;
|
2019-08-23 11:28:04 +03:00
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
use common\components\OAuth2\Entities\AuthCodeEntity;
|
2019-08-23 11:28:04 +03:00
|
|
|
use League\OAuth2\Server\Entities\AuthCodeEntityInterface;
|
|
|
|
use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface;
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
final class AuthCodeRepository implements AuthCodeRepositoryInterface {
|
2019-08-23 11:28:04 +03:00
|
|
|
|
|
|
|
public function getNewAuthCode(): AuthCodeEntityInterface {
|
|
|
|
return new AuthCodeEntity();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity): void {
|
|
|
|
}
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
public function revokeAuthCode(string $codeId): void {
|
2019-08-23 11:28:04 +03:00
|
|
|
}
|
|
|
|
|
2024-12-06 01:34:09 +01:00
|
|
|
public function isAuthCodeRevoked(string $codeId): bool {
|
2019-08-23 11:28:04 +03:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|