https://issues.shibboleth.net/jira/browse/SSPCPP-410
authorScott Cantor <cantor.2@osu.edu>
Fri, 10 Feb 2012 18:57:13 +0000 (18:57 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 10 Feb 2012 18:57:13 +0000 (18:57 +0000)
schemas/shibboleth-2.0-native-sp-config.xsd
shibsp/handler/impl/SAMLDSSessionInitiator.cpp

index 045bf39..6a37f22 100644 (file)
     <attribute name="redirectToSSL" type="unsignedInt"/>
     <attribute name="entityID" type="anyURI"/>
     <attribute name="discoveryURL" type="anyURI"/>
+    <attribute name="discoveryPolicy" type="conf:string"/>
     <attribute name="isPassive" type="boolean"/>
     <attribute name="returnOnError" type="boolean"/>
     <attribute name="forceAuthn" type="boolean"/>
     <attribute name="SPNameQualifier" type="conf:string"/>
     <attribute name="requestDelegation" type="boolean"/>
     <attribute name="target" type="anyURI"/>
+    <attribute name="discoveryPolicy" type="conf:string"/>
     <anyAttribute namespace="##any" processContents="lax"/>
   </attributeGroup>
 
index ed5b293..e3977a6 100644 (file)
@@ -277,6 +277,9 @@ pair<bool,long> SAMLDSSessionInitiator::run(SPRequest& request, string& entityID
         req = req + "&returnIDParam=" + m_returnParam;
     if (isPassive)
         req += "&isPassive=true";
+    prop = getString("discoveryPolicy");
+    if (prop.first)
+        req += "&policy=" + urlenc->encode(prop.second);
 
     return make_pair(true, request.sendRedirect(req.c_str()));
 }