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

metaedit: Fix endpoint generation.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2240 44740490-163a-0410-bde0-09ae8108e29a
parent b8ce6906
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ class sspmod_metaedit_MetaEditor {
}
}
protected function getEndpointField($request, &$metadata, $key) {
protected function getEndpointField($request, &$metadata, $key, $binding) {
if (array_key_exists('field_' . $key, $request)) {
$e = array('Binding' => SAML2_Const::BINDING_HTTP_REDIRECT, 'Location' => $request['field_' . $key], 'index' => '0');
$e = array(array('Binding' => $binding, 'Location' => $request['field_' . $key], 'index' => '0'));
$metadata[$key] = $e;
} else {
if (isset($metadata[$key])) unset($metadata[$key]);
......@@ -31,8 +31,8 @@ class sspmod_metaedit_MetaEditor {
$this->getStandardField($request, $metadata, 'entityid');
$this->getStandardField($request, $metadata, 'name');
$this->getStandardField($request, $metadata, 'description');
$this->getEndpointField($request, $metadata, 'AssertionConsumerService');
$this->getEndpointField($request, $metadata, 'SingleLogoutService');
$this->getEndpointField($request, $metadata, 'AssertionConsumerService', SAML2_Const::BINDING_HTTP_POST);
$this->getEndpointField($request, $metadata, 'SingleLogoutService', SAML2_Const::BINDING_HTTP_REDIRECT);
// $this->getStandardField($request, $metadata, 'certFingerprint');
$metadata['updated'] = time();
......
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