diff --git a/src/Entity/AuthCodeEntity.php b/src/Entity/AuthCodeEntity.php index 0a5809d3..a116af75 100644 --- a/src/Entity/AuthCodeEntity.php +++ b/src/Entity/AuthCodeEntity.php @@ -96,7 +96,8 @@ class AuthCodeEntity extends AbstractTokenEntity $this->server->getStorage('auth_code')->create( $this->getId(), $this->getExpireTime(), - $this->getSession()->getId() + $this->getSession()->getId(), + $this->getRedirectUri() ); // Associate the scope with the token