Skip to content
Snippets Groups Projects
Commit 7c5e8647 authored by Olav Morken's avatar Olav Morken
Browse files

IdP-proxy: Avoid unnecessary reauthentication with IDPList.

Don't always reauthenticate with the upstream IdP when IDPList parameter is
specified in the authentication request.

Patch by Benjamin Andersen.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2893 44740490-163a-0410-bde0-09ae8108e29a
parent 8a23124a
No related branches found
No related tags found
No related merge requests found
......@@ -380,7 +380,7 @@ class SimpleSAML_IdP {
/* Force authentication is in effect. */
$needAuth = TRUE;
} elseif (isset($state['saml:IDPList']) && sizeof($state['saml:IDPList']) > 0) {
$needAuth = TRUE;
$needAuth = !in_array($this->authSource->getAuthData('saml:sp:IdP'), $state['saml:IDPList'], TRUE);
} else {
$needAuth = !$this->isAuthenticated();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment