Exemple #1
0
 protected function getCodeFields($random = null)
 {
     if ($this->callback) {
         $state = ['callback' => $this->callback, 'random' => $random];
     } else {
         $state = ['random' => $random];
     }
     $encodedState = base64_encode(serialize($state));
     $fields = parent::getCodeFields($encodedState);
     $fields['hd'] = 'g.rit.edu';
     return $fields;
 }
Exemple #2
0
 /**
  * @param Request $clientId
  * @param string  $clientSecret
  * @param string  $redirectUrl
  */
 public function __construct($clientId, $clientSecret, $redirectUrl)
 {
     /** @var Request $request */
     $request = \Request::instance();
     parent::__construct($request, $clientId, $clientSecret, $redirectUrl);
 }