[cpp-sp] branch main updated: Add deprecation warning.

Scott Cantor cantor.2 at osu.edu
Tue Oct 28 19:25:39 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:
https://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=49dee477df7232e7fad3c399b2aad193c1267b6a

The following commit(s) were added to refs/heads/main by this push:
     new 49dee477 Add deprecation warning.
49dee477 is described below

commit 49dee477df7232e7fad3c399b2aad193c1267b6a
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Oct 28 15:25:33 2025 -0400

    Add deprecation warning.
---
 shibsp/impl/XMLAccessControl.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/shibsp/impl/XMLAccessControl.cpp b/shibsp/impl/XMLAccessControl.cpp
index a3e51d31..35d57da7 100644
--- a/shibsp/impl/XMLAccessControl.cpp
+++ b/shibsp/impl/XMLAccessControl.cpp
@@ -23,6 +23,7 @@
 
 #include "AccessControl.h"
 #include "Agent.h"
+#include "AgentConfig.h"
 #include "SPRequest.h"
 #include "attribute/AttributeConfiguration.h"
 #include "logging/Category.h"
@@ -145,6 +146,11 @@ Rule::Rule(const ptree& pt) : m_alias(pt.get(REQUIRE_PROP_PATH, ""))
         throw ConfigurationException("Access control rule missing require attribute");
     }
 
+    if (m_alias == "authnContextClassRef") {
+        AgentConfig::getConfig().deprecation().warn(
+            "Rule specifying authnContextClassRef is deprecated and will be removed from a future version");
+    }
+
     string vals = pt.get_value("");
     if (vals.empty()) {
         return; // empty rule

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


More information about the commits mailing list