oidc = $oidc; } /** * @throws GuzzleException|HttpResponseException */ public function get($params): Response { $code = $_GET['code']; $state = $_GET['state']; try { return $this->oidc->callback($code, $state); } catch (\Exception $e) { $this->tpl->setNotification($e->getMessage(), 'danger', 'oidc_error'); return Frontcontroller::redirect(BASE_URL.'/auth/login'); } } }