[cpp-sp] branch main updated: Add deprecation warning.
Scott Cantor
cantor.2 at osu.edu
Tue Oct 28 19:28:55 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=863088c8a60051d0c699c4663879b9b4856ff7df
The following commit(s) were added to refs/heads/main by this push:
new 863088c8 Add deprecation warning.
863088c8 is described below
commit 863088c8a60051d0c699c4663879b9b4856ff7df
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Oct 28 15:28:51 2025 -0400
Add deprecation warning.
---
shibsp/impl/XMLAccessControl.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/shibsp/impl/XMLAccessControl.cpp b/shibsp/impl/XMLAccessControl.cpp
index 35d57da7..5512aaaa 100644
--- a/shibsp/impl/XMLAccessControl.cpp
+++ b/shibsp/impl/XMLAccessControl.cpp
@@ -230,8 +230,14 @@ AccessControl::aclresult_t Rule::authorized(const SPRequest& request, const Sess
RuleRegex::RuleRegex(const ptree& pt)
: m_alias(pt.get(REQUIRE_PROP_PATH, "")), m_exp(pt.get_value(""))
{
- if (m_alias.empty() || m_exp.empty())
+ if (m_alias.empty() || m_exp.empty()) {
throw ConfigurationException("Access control rule missing require attribute or element content.");
+ }
+
+ if (m_alias == "authnContextClassRef") {
+ AgentConfig::getConfig().deprecation().warn(
+ "RuleRegex specifying authnContextClassRef is deprecated and will be removed from a future version");
+ }
static const char CASE_SENSITIVE_PROP_PATH[] = "caseSensitive";
static string_to_bool_translator tr;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list