From ef0861f9e234f9df134513c4ad11648a71f222e1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 17 Nov 2008 19:23:18 +0000 Subject: [PATCH] https://issues.shibboleth.net/jira/browse/SSPCPP-167 --- shibsp/handler/impl/SAMLDSSessionInitiator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shibsp/handler/impl/SAMLDSSessionInitiator.cpp b/shibsp/handler/impl/SAMLDSSessionInitiator.cpp index 90d189c..6a7cbd1 100644 --- a/shibsp/handler/impl/SAMLDSSessionInitiator.cpp +++ b/shibsp/handler/impl/SAMLDSSessionInitiator.cpp @@ -1,6 +1,6 @@ /* * Copyright 2001-2007 Internet2 - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,7 +16,7 @@ /** * SAMLDSSessionInitiator.cpp - * + * * SAML Discovery Service support. */ @@ -65,7 +65,7 @@ namespace shibsp { m_returnParam = url.second; } virtual ~SAMLDSSessionInitiator() {} - + pair run(SPRequest& request, string& entityID, bool isHandler=true) const; #ifndef SHIBSP_LITE @@ -79,10 +79,10 @@ namespace shibsp { auto_ptr_XMLCh widen(hurl.c_str()); ElementProxy* ep = new AnyElementImpl(m_discoNS.get(), LOCAL_NAME); ep->setAttribute(QName(NULL,EndpointType::LOCATION_ATTRIB_NAME), widen.get()); - ep->setAttribute(QName(NULL,EndpointType::BINDING_ATTRIB_NAME), getXMLString("Binding").second); + ep->setAttribute(QName(NULL,EndpointType::BINDING_ATTRIB_NAME), m_discoNS.get()); pair ix = getXMLString("index"); ep->setAttribute(QName(NULL,IndexedEndpointType::INDEX_ATTRIB_NAME), ix.first ? ix.second : xmlconstants::XML_ONE); - + Extensions* ext = role.getExtensions(); if (!ext) { ext = ExtensionsBuilder::buildExtensions(); @@ -131,7 +131,7 @@ pair SAMLDSSessionInitiator::run(SPRequest& request, string& entityID ex.addProperty("statusCode2", "urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP"); ex.raise(); } - + option = request.getParameter("target"); if (option) target = option; -- 2.1.4