Пример #1
0
 /**
  * Get the authenticated user data
  *
  * @return null|string
  */
 public function getAuthenticatedUser()
 {
     if ($this->cookieJar->has('cas_authenticated')) {
         $this->cookieJar->set('cas_authenticated', $this->cookieJar->get('cas_authenticated'), $this->getLoginCookieTTL());
         return $this->decrypt($this->cookieJar->get('cas_authenticated'));
     }
     return null;
 }
Пример #2
0
 protected function setTicketToCookieJar(TicketContract $ticket)
 {
     $this->cookieJar->set('cas_ticket', $ticket->getTicketCode(), 999);
 }