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

HTTPPost: Use new post redirect function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1547 44740490-163a-0410-bde0-09ae8108e29a
parent 556b70f1
No related branches found
No related tags found
No related merge requests found
......@@ -192,16 +192,10 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
} else {
$p = new SimpleSAML_XHTML_Template($this->configuration, 'post.php');
$p->data['RelayStateName'] = 'RelayState';
$p->data['RelayState'] = $relayState;
$p->data['destination'] = $destination;
$p->data['response'] = base64_encode($response);
$p->show();
SimpleSAML_Utilities::postRedirect($destination, array(
'RelayState' => $relayState,
'SAMLResponse' => base64_encode($response),
));
}
......
......@@ -94,12 +94,10 @@ class SimpleSAML_Bindings_Shib13_HTTPPost {
$p->show();
} else {
$p = new SimpleSAML_XHTML_Template($this->configuration, 'post.php');
$p->data['RelayStateName'] = 'TARGET';
$p->data['RelayState'] = $relayState;
$p->data['destination'] = $shire;
$p->data['response'] = base64_encode($response);
$p->show();
SimpleSAML_Utilities::postRedirect($destination, array(
'TARGET' => $relayState,
'SAMLResponse' => base64_encode($response),
));
}
}
......
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