From 10b1ace835d908d32f99874facf8811534087d5b Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 6 Jun 2022 17:10:14 +0200 Subject: Initial commit --- Authentication/Callback/index.php | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Authentication/Callback/index.php (limited to 'Authentication/Callback') diff --git a/Authentication/Callback/index.php b/Authentication/Callback/index.php new file mode 100644 index 0000000..3f50e1c --- /dev/null +++ b/Authentication/Callback/index.php @@ -0,0 +1,63 @@ + 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"); + } else { + header("Location: /Authentication/Disallowed"); + } + + die(); +} \ No newline at end of file -- cgit