Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit b1e62914 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: SAML2 behind reverse proxies #3277

https://github.com/onelogin/php-saml

When the PHP application is behind a proxy or a load balancer we can execute
setProxyVars(true) and setSelfPort and isHTTPS will take care of the
$_SERVER["HTTP_X_FORWARDED_PORT"] and $_SERVER['HTTP_X_FORWARDED_PROTO'] vars
(otherwise they are ignored).
parent b7aabe6e
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ else{
'authnRequestsSigned' => filter_var($params->spsignauthn, FILTER_VALIDATE_BOOLEAN),
),
);
OneLogin\Saml2\Utils::setProxyVars(true);
$auth = new OneLogin\Saml2\Auth($settings);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment