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 { ...@@ -192,16 +192,10 @@ class SimpleSAML_Bindings_SAML20_HTTPPost {
} else { } else {
$p = new SimpleSAML_XHTML_Template($this->configuration, 'post.php'); SimpleSAML_Utilities::postRedirect($destination, array(
'RelayState' => $relayState,
$p->data['RelayStateName'] = 'RelayState'; 'SAMLResponse' => base64_encode($response),
$p->data['RelayState'] = $relayState; ));
$p->data['destination'] = $destination;
$p->data['response'] = base64_encode($response);
$p->show();
} }
......
...@@ -94,12 +94,10 @@ class SimpleSAML_Bindings_Shib13_HTTPPost { ...@@ -94,12 +94,10 @@ class SimpleSAML_Bindings_Shib13_HTTPPost {
$p->show(); $p->show();
} else { } else {
$p = new SimpleSAML_XHTML_Template($this->configuration, 'post.php'); SimpleSAML_Utilities::postRedirect($destination, array(
$p->data['RelayStateName'] = 'TARGET'; 'TARGET' => $relayState,
$p->data['RelayState'] = $relayState; 'SAMLResponse' => base64_encode($response),
$p->data['destination'] = $shire; ));
$p->data['response'] = base64_encode($response);
$p->show();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment