From 2f354eb5b8eddf6cf3666accaa7a774300499405 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Mon, 28 Apr 2008 09:40:11 +0000
Subject: [PATCH] SAML 2.0 SSO Service now uses metaindex instead of entityid.
(should be part of previous commit but was left out)
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@523 44740490-163a-0410-bde0-09ae8108e29a
---
www/saml2/idp/SSOService.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php
index d7f44fd84..aea1ad10c 100644
--- a/www/saml2/idp/SSOService.php
+++ b/www/saml2/idp/SSOService.php
@@ -30,6 +30,7 @@ $session = SimpleSAML_Session::getInstance(TRUE);
try {
$idpentityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
+ $idmetaindex = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted', 'metaindex');
$idpmetadata = $metadata->getMetaDataCurrent('saml20-idp-hosted');
if (!array_key_exists('auth', $idpmetadata)) {
@@ -277,7 +278,7 @@ if($needAuth) {
// Sending the AuthNResponse using HTTP-Post SAML 2.0 binding
$httppost = new SimpleSAML_Bindings_SAML20_HTTPPost($config, $metadata);
- $httppost->sendResponse($authnResponseXML, $idpentityid, $spentityid,
+ $httppost->sendResponse($authnResponseXML, $idmetaindex, $spentityid,
isset($requestcache['RelayState']) ? $requestcache['RelayState'] : null
);
--
GitLab