diff --git a/src/League/OAuth2/Server/ResourceServer.php b/src/League/OAuth2/Server/ResourceServer.php index 2f304541..bae49991 100644 --- a/src/League/OAuth2/Server/ResourceServer.php +++ b/src/League/OAuth2/Server/ResourceServer.php @@ -51,9 +51,16 @@ class ResourceServer extends AbstractServer ClientInterface $clientStorage, ScopeInterface $scopeStorage ) { + $sessionStorage->setServer($this); $this->setStorage('session', $sessionStorage); + + $accessTokenStorage->setServer($this); $this->setStorage('access_token', $accessTokenStorage); + + $clientStorage->setServer($this); $this->setStorage('client', $clientStorage); + + $scopeStorage->setServer($this); $this->setStorage('scope', $scopeStorage); return $this;