Revision: 2240
Author: olavmrk
Date: Fri Mar 26 06:00:21 2010
Log: metaedit: Fix endpoint generation.
http://code.google.com/p/simplesamlphp/source/detail?r=2240

Modified:
 /trunk/modules/metaedit/lib/MetaEditor.php

=======================================
--- /trunk/modules/metaedit/lib/MetaEditor.php  Wed Mar 17 06:25:23 2010
+++ /trunk/modules/metaedit/lib/MetaEditor.php  Fri Mar 26 06:00:21 2010
@@ -18,9 +18,9 @@
                }
        }

-       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 @@
                $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();

--
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en.

Reply via email to