From: Vincent Vanwaelscappel Date: Thu, 29 Feb 2024 17:06:10 +0000 (+0100) Subject: try #6760 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=fluidbook-hosting.git try #6760 @1.5 --- diff --git a/LVMH-SSO/_secure.php b/LVMH-SSO/_secure.php index 843774b..c31ebde 100644 --- a/LVMH-SSO/_secure.php +++ b/LVMH-SSO/_secure.php @@ -4,6 +4,8 @@ if (isset($_POST) && count($_POST)) { file_put_contents(__DIR__ . '/log/log.' . $t . '.log', print_r($_POST, true)); } +\OneLogin\Saml2\Utils::setProxyVars(true); + $basedir = '/LVMH/Internal-Control-Base-December-2020/'; $base = 'https://hosting.fluidbook.com' . $basedir; @@ -248,7 +250,7 @@ function getMetadata() ) )); $c = file_get_contents('https://okta.lvmh.com/app/exkde2eh6L55wyfcE416/sso/saml/metadata', $ctx); - if(!$c){ + if (!$c) { return json_decode(file_get_contents($cachefile), true); } $xml = simplexml_load_string($c); diff --git a/VacheronSSO/_sso.php b/VacheronSSO/_sso.php index 8dcac3b..d095ee4 100644 --- a/VacheronSSO/_sso.php +++ b/VacheronSSO/_sso.php @@ -5,6 +5,9 @@ require_once "vendor/autoload.php"; use GuzzleHttp\Client; use OneLogin\Saml2\Auth; +use OneLogin\Saml2\Utils; + +Utils::setProxyVars(true); $logdir = __DIR__ . '/log/'; @@ -17,7 +20,6 @@ if (isset($_POST) && count($_POST)) { file_put_contents($logdir . 'log.' . $t . '.log', print_r($_POST, true)); } - $basedir = '/'; $base = 'https://' . $_SERVER['HTTP_HOST'] . $basedir; if ($_SERVER['HTTP_HOST'] === 'cabinotiers.vacheron-constantin.com') {