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

IdP: Add more info to requestcache, for backwards-compatibility

Fixes issue 279.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2176 44740490-163a-0410-bde0-09ae8108e29a
parent 6c1b48db
No related branches found
No related tags found
No related merge requests found
...@@ -294,6 +294,19 @@ class SimpleSAML_IdP { ...@@ -294,6 +294,19 @@ class SimpleSAML_IdP {
'State' => $state, 'State' => $state,
); );
if (isset($state['saml:RequestId'])) {
$authnRequest['RequestID'] = $state['saml:RequestId'];
}
if (isset($state['SPMetadata']['entityid'])) {
$authnRequest['Issuer'] = $state['SPMetadata']['entityid'];
}
if (isset($state['saml:RelayState'])) {
$authnRequest['RelayState'] = $state['saml:RelayState'];
}
if (isset($state['saml:IDPList'])) {
$authnRequest['IDPList'] = $state['saml:IDPList'];
}
$authId = SimpleSAML_Utilities::generateID(); $authId = SimpleSAML_Utilities::generateID();
$session = SimpleSAML_Session::getInstance(); $session = SimpleSAML_Session::getInstance();
$session->setAuthnRequest('saml2', $authId, $authnRequest); $session->setAuthnRequest('saml2', $authId, $authnRequest);
......
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