<?php
namespace Claromentis\OAuth2;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_f4e5c2cfc0c84820575d1586a6" . "f13ae0" => base64_decode("YWNjZXNzX3R" . "va2Vu"));
use Claromentis\Core\Http\Request;
use Claromentis\oauth2\Entity\AccessTokenEntity;
use Psr\Http\Message\ServerRequestInterface;
class ResourceServer extends \League\OAuth2\Server\ResourceServer
{
    
    
    protected $request;
    protected $access_token;
    public function setRequest($request)
    {
        $this->request = $request;
        $this->Validate();
    }
    public function getRequest()
    {
        return $this->request;
    }
    public function Validate()
    {
        $this->request = $this->validateAuthenticatedRequest($this->request);
    }
    public function determineAccessToken($_5cc5ff62da5b192e364d4551bbcd194a)
    {
        $this->access_token = $this->request->getAttribute($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_f4e5c2cfc0c84820575d1586a6f1" . "3ae0"]);
        return $this->access_token;
    }
    public function getAccessToken()
    {
        return $this->access_token;
    }
}