[cpp-sp] branch main updated: Explicitly handle query string as with session-initiator.

Codeberg noreply at shibboleth.net
Wed Nov 11 15:59:49 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/7e4e88c3c72159a9d0d61b01698bb53bde54a760

The following commit(s) were added to refs/heads/main by this push:
     new 7e4e88c3 Explicitly handle query string as with session-initiator.
7e4e88c3 is described below

commit 7e4e88c3c72159a9d0d61b01698bb53bde54a760
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Nov 11 10:59:34 2026 -0500

    Explicitly handle query string as with session-initiator.
---
 shibsp/handler/impl/Passthrough.cpp | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/shibsp/handler/impl/Passthrough.cpp b/shibsp/handler/impl/Passthrough.cpp
index 98012e25..39a53e12 100644
--- a/shibsp/handler/impl/Passthrough.cpp
+++ b/shibsp/handler/impl/Passthrough.cpp
@@ -48,6 +48,7 @@ namespace {
         string m_operation;
         set<string> m_remotedHeaders;
         vector<string> m_requestMapperSettings;
+        vector<string> m_querySettings;
         bool m_body;
         bool m_limitRedirects;
     };
@@ -67,6 +68,7 @@ Passthrough::Passthrough(const ptree& pt, const char* path)
     static const char SEND_BODY_PROP_NAME[] = "sendBody";
     static const char LIMIT_REDIRECTS_PROP_NAME[] = "limitRedirects";
     static const char REQUEST_MAPPER_SETTINGS_PROP_NAME[] = "requestMapperSettings";
+    static const char QUERY_SETTINGS_PROP_NAME[] = "querySettings";
 
     static const char OPERATION_PROP_DEFAULT[] = "";
     static bool SEND_BODY_PROP_DEFAULT = false;
@@ -86,6 +88,10 @@ Passthrough::Passthrough(const ptree& pt, const char* path)
     if (settings) {
         split_to_container(m_requestMapperSettings, settings);
     }
+    settings = getString(QUERY_SETTINGS_PROP_NAME);
+    if (settings) {
+        split_to_container(m_querySettings, settings);
+    }
 
     m_body = getBool(SEND_BODY_PROP_NAME, SEND_BODY_PROP_DEFAULT);
     m_limitRedirects = getBool(LIMIT_REDIRECTS_PROP_NAME, LIMIT_REDIRECTS_PROP_DEFAULT);
@@ -111,6 +117,16 @@ pair<bool,long> Passthrough::run(SPRequest& request, bool isHandler) const
             }
         }
 
+        // If there's an overlap with the previous set, this will overwrite.
+
+        for (const string& propname : m_querySettings) {
+            const char* prop = getString(propname.c_str(), request, nullptr,
+                HANDLER_PROPERTY_REQUEST);
+            if (prop) {
+                input.addmember(propname.c_str()).string(prop);
+            }
+        }
+
         DDF output = request.getAgent().getRemotingService()->send(input);
         DDFJanitor outputJanitor(output);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list