From 146774a4ed1fca946fcc24d66dcca7ffe21dcd72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 12 Jun 2022 22:38:03 +0200 Subject: Working around a bug --- Authentication/MobileCallback/index.php | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Authentication/MobileCallback/index.php (limited to 'Authentication/MobileCallback/index.php') diff --git a/Authentication/MobileCallback/index.php b/Authentication/MobileCallback/index.php new file mode 100644 index 0000000..8c16d67 --- /dev/null +++ b/Authentication/MobileCallback/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: /Mobile"); + } else { + header("Location: /Authentication/Disallowed"); + } + + die(); +} \ No newline at end of file -- cgit