/**
  * {@inheritDoc}
  */
 public function hasAccessToken($service)
 {
     if (isset($this->cachedTokens[$service]) && $this->cachedTokens[$service] instanceof TokenInterface) {
         return true;
     }
     return $this->redis->hexists($this->key, $service);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function hasAuthorizationState($service)
 {
     if (isset($this->cachedStates[$service]) && null !== $this->cachedStates[$service]) {
         return true;
     }
     return $this->redis->hexists($this->stateKey, $service);
 }