diff options
Diffstat (limited to 'Authentication')
-rw-r--r-- | Authentication/Callback/index.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Authentication/Callback/index.php b/Authentication/Callback/index.php index 3f50e1c..0dad35d 100644 --- a/Authentication/Callback/index.php +++ b/Authentication/Callback/index.php @@ -42,16 +42,6 @@ if (isset($result["access_token"])) { if (in_array($result["id"], json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/AllowedUsers.json"), true))) { $token = bin2hex(random_bytes(32)); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/SessionTokens/" . $token, json_encode($result)); - session_start(); - session_set_cookie_params([ - 'lifetime' => 0, - 'path' => '/', - 'domain' => "", - 'secure' => true, - 'httponly' => true, - 'samesite' => 'None' - ]); - setcookie("BITS_SESSION_TOKEN", $token, 0, "/", "", true, true); header("Set-Cookie: BITS_SESSION_TOKEN=" . $token . "; SameSite=None; Path=/; Secure; HttpOnly"); header("Location: /Authentication/Success"); |