[cpp-sp] branch main updated: Add a constant for REMOTE_USER setting.

Scott Cantor cantor.2 at osu.edu
Thu Oct 9 18:45:40 UTC 2025


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

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

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=6b80b173ac32489afd32f555c2bb945066447ae4

The following commit(s) were added to refs/heads/main by this push:
     new 6b80b173 Add a constant for REMOTE_USER setting.
6b80b173 is described below

commit 6b80b173ac32489afd32f555c2bb945066447ae4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Oct 9 14:45:36 2025 -0400

    Add a constant for REMOTE_USER setting.
---
 shibsp/RequestMapper.h                                  | 1 +
 shibsp/attribute/impl/DefaultAttributeConfiguration.cpp | 2 +-
 shibsp/impl/XMLRequestMapper.cpp                        | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/shibsp/RequestMapper.h b/shibsp/RequestMapper.h
index 10d46a09..0edefa0e 100644
--- a/shibsp/RequestMapper.h
+++ b/shibsp/RequestMapper.h
@@ -60,6 +60,7 @@ namespace shibsp {
         static const char POST_LIMIT_PROP_NAME[];
         static const char REDIRECT_ERRORS_PROP_NAME[];
         static const char REDIRECT_TO_SSL_PROP_NAME[];
+        static const char REMOTE_USER_PROP_NAME[];
         static const char REQUIRE_SESSION_PROP_NAME[];
         static const char REQUIRE_LOGOUT_WITH_PROP_NAME[];
         static const char SESSION_COOKIE_NAME_PROP_NAME[];
diff --git a/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp b/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
index feaafc22..ae0c2c70 100644
--- a/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
+++ b/shibsp/attribute/impl/DefaultAttributeConfiguration.cpp
@@ -359,7 +359,7 @@ void DefaultAttributeConfiguration::exportAttributes(SPRequest& request, const S
 
     // Check for REMOTE_USER.
     vector<string> rmids;
-    split_to_container(rmids, settings.first->getString("REMOTE_USER", ""));
+    split_to_container(rmids, settings.first->getString(RequestMapper::REMOTE_USER_PROP_NAME, ""));
     for (const string& rmid : rmids) {
         const char* firstVal = getFirstValue(session, rmid.c_str());
         if (firstVal && *firstVal) {
diff --git a/shibsp/impl/XMLRequestMapper.cpp b/shibsp/impl/XMLRequestMapper.cpp
index e0bdb08f..07b321f5 100644
--- a/shibsp/impl/XMLRequestMapper.cpp
+++ b/shibsp/impl/XMLRequestMapper.cpp
@@ -179,6 +179,7 @@ const char RequestMapper::PRESERVE_POST_DATA_PROP_NAME[] =  "preservePostData";
 const char RequestMapper::POST_LIMIT_PROP_NAME[] =          "postLimit";
 const char RequestMapper::REDIRECT_ERRORS_PROP_NAME[] =     "redirectErrors";
 const char RequestMapper::REDIRECT_TO_SSL_PROP_NAME[] =     "redirectToSSL";
+const char RequestMapper::REMOTE_USER_PROP_NAME[] =         "REMOTE_USER";
 const char RequestMapper::REQUIRE_LOGOUT_WITH_PROP_NAME[] = "requireLogoutWith";
 const char RequestMapper::REQUIRE_SESSION_PROP_NAME[] =     "requireSession";
 const char RequestMapper::SESSION_COOKIE_NAME_PROP_NAME[] = "sessionCookieName";

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


More information about the commits mailing list