コード例 #1
0
 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');
     }
 }
コード例 #2
0
 public function updateUser(array $user)
 {
     $user['id'] = $this->scopeIdentity('u', $user['id']);
     $this->store->updateObject($user);
 }