* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Security\OAuth2; use Psr\Http\Message\ServerRequestInterface; use Symfony\Component\Security\Core\User\UserInterface; /** * Interface to implement when using/implementing an Authorization Server so the Resource Server * can have a way to verify the access token * * @experimental */ interface ResourceServerInterface { public function isTokenValid(ServerRequestInterface $request): bool; public function getUser(ServerRequestInterface $request): ?UserInterface; }