From 00518dded7fa8840cbd93d8f14ca60ac7a6c994f Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 9 Apr 2016 15:21:15 +0100 Subject: [PATCH] Removed built-in entities, all functinality available using traits --- src/Entities/AccessTokenEntity.php | 37 ----------------------------- src/Entities/AuthCodeEntity.php | 33 ------------------------- src/Entities/RefreshTokenEntity.php | 15 ------------ 3 files changed, 85 deletions(-) delete mode 100644 src/Entities/AccessTokenEntity.php delete mode 100644 src/Entities/AuthCodeEntity.php delete mode 100644 src/Entities/RefreshTokenEntity.php diff --git a/src/Entities/AccessTokenEntity.php b/src/Entities/AccessTokenEntity.php deleted file mode 100644 index 34ae167e..00000000 --- a/src/Entities/AccessTokenEntity.php +++ /dev/null @@ -1,37 +0,0 @@ -setAudience($this->getClient()->getIdentifier()) - ->setId($this->getIdentifier(), true) - ->setIssuedAt(time()) - ->setNotBefore(time()) - ->setExpiration($this->getExpiryDateTime()->getTimestamp()) - ->setSubject($this->getUserIdentifier()) - ->set('scopes', $this->getScopes()) - ->sign(new Sha256(), new Key($privateKey->getKeyPath(), $privateKey->getPassPhrase())) - ->getToken(); - } -} diff --git a/src/Entities/AuthCodeEntity.php b/src/Entities/AuthCodeEntity.php deleted file mode 100644 index 87279d30..00000000 --- a/src/Entities/AuthCodeEntity.php +++ /dev/null @@ -1,33 +0,0 @@ -redirectUri; - } - - /** - * @param string $uri - */ - public function setRedirectUri($uri) - { - $this->redirectUri = $uri; - } -} diff --git a/src/Entities/RefreshTokenEntity.php b/src/Entities/RefreshTokenEntity.php deleted file mode 100644 index 97b0348a..00000000 --- a/src/Entities/RefreshTokenEntity.php +++ /dev/null @@ -1,15 +0,0 @@ -