From f70cf5893bb775625e79ed959721ede03e34a108 Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 11 Jul 2022 18:54:47 +0200 Subject: Update --- Authentication/Mobile2Callback/index.php | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Authentication/Mobile2Callback/index.php (limited to 'Authentication/Mobile2Callback/index.php') diff --git a/Authentication/Mobile2Callback/index.php b/Authentication/Mobile2Callback/index.php new file mode 100644 index 0000000..a59b926 --- /dev/null +++ b/Authentication/Mobile2Callback/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: /Mobile2"); + } else { + header("Location: /Authentication/Disallowed"); + } + + die(); +} \ No newline at end of file -- cgit