/** * Constructor. * * @param CentralAuthenticationStore $cas Shared instance of the CentralAuthenticationStore class. * @param LoggerInterface $logger Shared instance of a Logger class. * @param Curl $curl Shared instance of the Curl class. * @param RequestInterface $request Shared instance of a Request class. */ public function __construct($cas, $logger, $curl, $request) { parent::__construct($cas, $logger, $curl); $this->state = $request->get_get_data('state'); $this->code = $request->get_get_data('code'); $this->redirect_uri = $request->base_url . $request->call; $this->scope = NULL; $this->token_expires = 0; if ($this->state === NULL) { $this->state = md5(uniqid(rand(), TRUE)); } }