[cpp-sp] branch main updated: Backstop token consumer operation with a home_url.
Codeberg
noreply at shibboleth.net
Tue May 26 15:05:47 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/2805ecd843f27c6a92753173b4f14fc20527df0a
The following commit(s) were added to refs/heads/main by this push:
new 2805ecd8 Backstop token consumer operation with a home_url.
2805ecd8 is described below
commit 2805ecd843f27c6a92753173b4f14fc20527df0a
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue May 26 11:05:20 2026 -0400
Backstop token consumer operation with a home_url.
---
shibsp/handler/impl/TokenConsumer.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/shibsp/handler/impl/TokenConsumer.cpp b/shibsp/handler/impl/TokenConsumer.cpp
index 80937708..f4d78331 100644
--- a/shibsp/handler/impl/TokenConsumer.cpp
+++ b/shibsp/handler/impl/TokenConsumer.cpp
@@ -90,7 +90,8 @@ pair<bool,long> TokenConsumer::run(SPRequest& request, bool isHandler) const
target = param.first->second;
}
else {
- target = getString(RequestMapper::HOME_URL_PROP_NAME, request, RequestMapper::HOME_URL_PROP_DEFAULT, HANDLER_PROPERTY_MAP);
+ target = getString(RequestMapper::HOME_URL_PROP_NAME, request,
+ RequestMapper::HOME_URL_PROP_DEFAULT, HANDLER_PROPERTY_MAP);
}
request.limitRedirect(target.c_str());
return make_pair(true, request.sendRedirect(target.c_str()));
@@ -106,6 +107,10 @@ pair<bool,long> TokenConsumer::run(SPRequest& request, bool isHandler) const
DDF wrapped = wrapRequest(request, m_remotedHeaders);
input.add(wrapped);
+ input.addmember("home_url").unsafe_string(
+ getString(RequestMapper::HOME_URL_PROP_NAME, request,
+ RequestMapper::HOME_URL_PROP_DEFAULT, HANDLER_PROPERTY_MAP));
+
// Second parameter is false so we can capture any validation errors on
// an unsuccessful event result.
DDF output = request.getAgent().getRemotingService()->send(input, false);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list