| | |
| | | { |
| | | if ($this->authorized) { |
| | | return view('vodafone_fake_sso.choose_profile', [ |
| | | "domain" => Utils::getDomain($_SERVER['SERVER_NAME']), |
| | | "setUrl" => "/set", |
| | | "clearUrl" => "/clear" |
| | | ]); |
| | |
| | | |
| | | public function setFakeSSO(Request $request) |
| | | { |
| | | \Log::channel('sso')->debug("Attivo la sessione FakeSSO"); |
| | | if ($this->authorized) { |
| | | $json = $request->json()->all(); |
| | | $expire = time() + (60 * 30); |
| | |
| | | |
| | | public function clearFakeSSO(Request $request) |
| | | { |
| | | \Log::channel('sso')->debug("Rimuovo la sessione FakeSSO"); |
| | | $domain = Utils::getDomain($_SERVER['SERVER_NAME']); |
| | | if ($this->authorized) { |
| | | @setcookie('mc_FakeSSO', "", -1, "/", $domain); |