芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/lib/OAuth/AuthCodeRepository.php
. */ namespace Xibo\OAuth; use League\OAuth2\Server\Entities\AuthCodeEntityInterface; use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface; class AuthCodeRepository implements AuthCodeRepositoryInterface { /** * {@inheritdoc} */ public function persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity) { // Some logic to persist the auth code to a database } /** * {@inheritdoc} */ public function revokeAuthCode($codeId) { // Some logic to revoke the auth code in a database } /** * {@inheritdoc} */ public function isAuthCodeRevoked($codeId) { return false; // The auth code has not been revoked } /** * {@inheritdoc} */ public function getNewAuthCode() { return new AuthCodeEntity(); } }