/**
  * {@inheritDoc}
  */
 public function storeAccessToken($service, TokenInterface $token)
 {
     // (over)write the token
     $this->redis->hset($this->key, $service, serialize($token));
     $this->cachedTokens[$service] = $token;
     // allow chaining
     return $this;
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  */
 public function storeAuthorizationState($service, $state)
 {
     // (over)write the token
     $this->redis->hset($this->stateKey, $service, $state);
     $this->cachedStates[$service] = $state;
     // allow chaining
     return $this;
 }