fix login sso

parent 9a367234
...@@ -45,19 +45,19 @@ class LoginController extends Controller ...@@ -45,19 +45,19 @@ class LoginController extends Controller
public function sso($email, $session_id) public function sso($email, $session_id)
{ {
// $auth = $this->ssoRepo->sso($session_id); $auth = $this->ssoRepo->sso($session_id);
try { // try {
$clientbiodata = new Client(); // $clientbiodata = new Client();
$apiRequestbiodata = $clientbiodata->request('GET', 'https://sso.unesa.ac.id/userid/'.'chumairo.18008@mhs.unesa.ac.id'); // $apiRequestbiodata = $clientbiodata->request('GET', 'https://sso.unesa.ac.id/userid/'.'chumairo.18008@mhs.unesa.ac.id');
$aksessso = json_decode($apiRequestbiodata->getBody()->getContents()); // $aksessso = json_decode($apiRequestbiodata->getBody()->getContents());
} catch (\Exception $apiRequestbiodata) { // } catch (\Exception $apiRequestbiodata) {
$gagal_login = 'Data Tidak Ditemukan'; // $gagal_login = 'Data Tidak Ditemukan';
return $error; // return $error;
} // }
$auth = $aksessso; // $auth = $aksessso;
if (!is_array($auth)) { if (!is_array($auth)) {
return redirect('https://sso.unesa.ac.id/user'); return redirect('https://sso.unesa.ac.id/user');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment