/** * @param $clientId string * @throws \SimpleSAML_Error_Error */ public function removeClient($clientId) { if (!array_key_exists($clientId, $this->configuredClients)) { return $this->store->removeObject($this->scopeIdentity('s', $clientId)); } else { throw new SimpleSAML_Error_Error('oauth2server:READONLY'); } }
/** * @param $tokenId string */ public function removeAccessToken($tokenId) { $this->store->removeObject($this->scopeIdentity('a', $tokenId)); }
/** * @param $userId string */ public function removeUser($userId) { $this->store->removeObject($this->scopeIdentity('u', $userId)); }