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

saml: Fix warning about unset element when doing SAML 1.1 authentication.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2811 44740490-163a-0410-bde0-09ae8108e29a
parent 732dd24a
No related branches found
No related tags found
No related merge requests found
......@@ -439,8 +439,6 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source {
$authProcState = array(
'saml:sp:IdP' => $idp,
'saml:sp:NameID' => $state['saml:sp:NameID'],
'saml:sp:SessionIndex' => $state['saml:sp:SessionIndex'],
'saml:sp:State' => $state,
'ReturnCall' => array('sspmod_saml_Auth_Source_SP', 'onProcessingCompleted'),
......@@ -449,6 +447,13 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source {
'Source' => $idpMetadataArray,
);
if (isset($state['saml:sp:NameID'])) {
$authProcState['saml:sp:NameID'] = $state['saml:sp:NameID'];
}
if (isset($state['saml:sp:SessionIndex'])) {
$authProcState['saml:sp:SessionIndex'] = $state['saml:sp:SessionIndex'];
}
$pc = new SimpleSAML_Auth_ProcessingChain($idpMetadataArray, $spMetadataArray, 'sp');
$pc->processState($authProcState);
......
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