From: Vincent Vanwaelscappel Date: Mon, 22 Feb 2021 13:09:59 +0000 (+0100) Subject: wip #4277 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b385ac06f69f52d9d94c1c1e41231bc257ec446;p=fluidbook-hosting.git wip #4277 @2 --- diff --git a/LVMH-SSO/_secure.php b/LVMH-SSO/_secure.php index 8288667..945a6c0 100644 --- a/LVMH-SSO/_secure.php +++ b/LVMH-SSO/_secure.php @@ -118,6 +118,12 @@ if ($needsAuth) { session_write_close(); file_put_contents(__DIR__ . '/log/ok.' . $t . '.log', print_r($_SESSION, true)); file_put_contents(__DIR__ . '/log/xml.' . $t . '.log', $auth->getLastResponseXML()); + + if ($_POST['RelayState'] !== 'https://hosting.fluidbook.com/LVMH/Internal-Control-Base-December-2020/') { + header('Location: ' . $_POST['RelayState'], true); + exit; + } + } else { file_put_contents(__DIR__ . '/log/err.' . $t . '.log', print_r($errors, true) . "\n\n--\n\n" . print_r($auth->getLastErrorReason(), true) . "\n\n--\n\n" . print_r($auth->getLastErrorException(), true)); } diff --git a/LVMH-SSO/ja/index.html b/LVMH-SSO/ja/index.html new file mode 100644 index 0000000..e59dcc6 --- /dev/null +++ b/LVMH-SSO/ja/index.html @@ -0,0 +1 @@ +Test vers version JA はい :) \ No newline at end of file diff --git a/LVMH-SSO/zh/index.html b/LVMH-SSO/zh/index.html new file mode 100644 index 0000000..4f6b890 --- /dev/null +++ b/LVMH-SSO/zh/index.html @@ -0,0 +1 @@ +Test vers version ZH 好的 :) \ No newline at end of file