protected function ProxyCallbackController::storePgtMapping in CAS 2.x
Same name and namespace in other branches
- 8 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
- Provides a controller for the 'cas.proxyCallback' route.
Namespace
Drupal\cas\ControllerCode
protected function storePgtMapping($pgt_iou, $pgt_id) {
$this->connection
->insert('cas_pgt_storage')
->fields([
'pgt_iou',
'pgt',
'timestamp',
], [
$pgt_iou,
$pgt_id,
time(),
])
->execute();
}