public function updateClient(array $client) { if (!array_key_exists($client['id'], $this->configuredClients)) { if ($this->registrationEnabled) { $client['id'] = $this->scopeIdentity('s', $client['id']); return $this->store->updateObject($client); } else { throw new SimpleSAML_Error_Error('oauth2server:REGISTRATION_DISABLED'); } } else { throw new SimpleSAML_Error_Error('oauth2server:READONLY'); } }
public function updateUser(array $user) { $user['id'] = $this->scopeIdentity('u', $user['id']); $this->store->updateObject($user); }