]> _ Git - fluidbook-hosting.git/commitdiff
try #6760 @1.5 master
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 29 Feb 2024 17:06:10 +0000 (18:06 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 29 Feb 2024 17:06:10 +0000 (18:06 +0100)
LVMH-SSO/_secure.php
VacheronSSO/_sso.php

index 843774bec1519b3234bc7453b8715bde776cad31..c31ebde190255dc8e1f5de18953395998a4f3ccd 100644 (file)
@@ -4,6 +4,8 @@ if (isset($_POST) && count($_POST)) {
     file_put_contents(__DIR__ . '/log/log.' . $t . '.log', print_r($_POST, true));
 }
 
     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;
 
 $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);
             )
         ));
         $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);
             return json_decode(file_get_contents($cachefile), true);
         }
         $xml = simplexml_load_string($c);
index 8dcac3b65ea194c99a91e1d09906988d1d28d467..d095ee4a706f042bc26003a81cdc2091ab3048ef 100644 (file)
@@ -5,6 +5,9 @@ require_once "vendor/autoload.php";
 
 use GuzzleHttp\Client;
 use OneLogin\Saml2\Auth;
 
 use GuzzleHttp\Client;
 use OneLogin\Saml2\Auth;
+use OneLogin\Saml2\Utils;
+
+Utils::setProxyVars(true);
 
 $logdir = __DIR__ . '/log/';
 
 
 $logdir = __DIR__ . '/log/';
 
@@ -17,7 +20,6 @@ if (isset($_POST) && count($_POST)) {
     file_put_contents($logdir . 'log.' . $t . '.log', print_r($_POST, true));
 }
 
     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') {
 $basedir = '/';
 $base = 'https://' . $_SERVER['HTTP_HOST'] . $basedir;
 if ($_SERVER['HTTP_HOST'] === 'cabinotiers.vacheron-constantin.com') {