You are here

public function OpenIDConnectAuthmap::deleteAssociation in OpenID Connect / OAuth client 8

Deletes a user's authmap entries.

Parameters

int $uid: A user id.

string $client_name: A client name.

File

src/OpenIDConnectAuthmap.php, line 77

Class

OpenIDConnectAuthmap
The OpenID Connect authmap service.

Namespace

Drupal\openid_connect

Code

public function deleteAssociation($uid, $client_name = '') {
  $query = $this->connection
    ->delete('openid_connect_authmap')
    ->condition('uid', $uid);
  if (!empty($client_name)) {
    $query
      ->condition('client_name', $client_name, '=');
  }
  $query
    ->execute();
}