Commit c01b02cb authored by Dmitrii Metelkin's avatar Dmitrii Metelkin Committed by Robert Lyon
Browse files

Bug 1717133: set correct port if we use SAML and sslproxy is enabled

behatnotneeded

Change-Id: Ieea98e63ba9db15613f28ad34b95ed4177aba3e9
parent cbbad1e9
...@@ -643,6 +643,11 @@ class PluginAuthSaml extends PluginAuth { ...@@ -643,6 +643,11 @@ class PluginAuthSaml extends PluginAuth {
throw new AuthInstanceException(get_string('errorbadlib', 'auth.saml', get_config('docroot') . 'auth/saml/extlib/simplesamlphp/vendor/autoload.php')); throw new AuthInstanceException(get_string('errorbadlib', 'auth.saml', get_config('docroot') . 'auth/saml/extlib/simplesamlphp/vendor/autoload.php'));
} }
// Tell SSP that we are on 443 if we are terminating SSL elsewhere.
if (get_config('sslproxy')) {
$_SERVER['SERVER_PORT'] = '443';
}
require_once(get_config('docroot') . 'auth/saml/extlib/simplesamlphp/vendor/autoload.php'); require_once(get_config('docroot') . 'auth/saml/extlib/simplesamlphp/vendor/autoload.php');
require_once(get_config('docroot') . 'auth/saml/extlib/_autoload.php'); require_once(get_config('docroot') . 'auth/saml/extlib/_autoload.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment