You are here

protected function ProxyCallbackController::storePgtMapping in CAS 8

Same name and namespace in other branches
  1. 2.x src/Controller/ProxyCallbackController.php \Drupal\cas\Controller\ProxyCallbackController::storePgtMapping()

Store the pgtIou to pgtId mapping in the database.

@codeCoverageIgnore

Parameters

string $pgt_iou: The pgtIou from CAS Server.

string $pgt_id: The pgtId from the CAS server.

1 call to ProxyCallbackController::storePgtMapping()
ProxyCallbackController::callback in src/Controller/ProxyCallbackController.php
Route callback for the ProxyGrantingTicket information.

File

src/Controller/ProxyCallbackController.php, line 106

Class

ProxyCallbackController
Class ProxyCallbackController.

Namespace

Drupal\cas\Controller

Code

protected function storePgtMapping($pgt_iou, $pgt_id) {
  $this->connection
    ->insert('cas_pgt_storage')
    ->fields([
    'pgt_iou',
    'pgt',
    'timestamp',
  ], [
    $pgt_iou,
    $pgt_id,
    time(),
  ])
    ->execute();
}