[cpp-sp] branch master updated: SSPCPP-424 - Configuration to allow contents of metadata to affect behavior of SP

Scott Cantor cantor.2 at osu.edu
Tue Jun 14 14:26:52 EDT 2016


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

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  c19edf5   SSPCPP-424 - Configuration to allow contents of metadata to affect behavior of SP
c19edf5 is described below

commit c19edf5df0957d0d203b03b253be574eed4cc177
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jun 14 14:26:16 2016 -0400

    SSPCPP-424 - Configuration to allow contents of metadata to affect behavior of SP
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-424
    
    Add same capability to WS-Fed handler.
---
 adfs/adfs.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/adfs/adfs.cpp b/adfs/adfs.cpp
index c74912f..f567320 100644
--- a/adfs/adfs.cpp
+++ b/adfs/adfs.cpp
@@ -541,8 +541,15 @@ pair<bool,long> ADFSSessionInitiator::doRequest(
     auto_ptr_char dest(ep->getLocation());
     const URLEncoder* urlenc = XMLToolingConfig::getConfig().getURLEncoder();
 
+    const PropertySet* relyingParty = app.getRelyingParty(entity.first);
+
     string req=string(dest.get()) + (strchr(dest.get(),'?') ? '&' : '?') + "wa=wsignin1.0&wreply=" + urlenc->encode(acsLocation) +
-        "&wct=" + urlenc->encode(timebuf) + "&wtrealm=" + urlenc->encode(app.getString("entityID").second);
+        "&wct=" + urlenc->encode(timebuf) + "&wtrealm=" + urlenc->encode(relyingParty->getString("entityID").second);
+    if (!authnContextClassRef) {
+        pair<bool,const char*> rpClass = relyingParty->getString("authnContextClassRef");
+        if (rpClass.first)
+            authnContextClassRef = rpClass.second;
+    }
     if (authnContextClassRef)
         req += "&wauth=" + urlenc->encode(authnContextClassRef);
     if (!relayState.empty())

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


More information about the commits mailing list