[cpp-sp] 03/03: Add application ID to NDC.
Scott Cantor
cantor.2 at osu.edu
Fri Apr 20 13:49:55 EDT 2018
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=40eb3a1732ef4ffb9304838207d70735c36f18cf
commit 40eb3a1732ef4ffb9304838207d70735c36f18cf
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Apr 20 13:49:47 2018 -0400
Add application ID to NDC.
---
shibsp/ServiceProvider.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/shibsp/ServiceProvider.cpp b/shibsp/ServiceProvider.cpp
index bc975fe..6617130 100644
--- a/shibsp/ServiceProvider.cpp
+++ b/shibsp/ServiceProvider.cpp
@@ -325,6 +325,9 @@ pair<bool,long> ServiceProvider::doAuthentication(SPRequest& request, bool handl
RequestMapper::Settings settings = request.getRequestSettings();
app = &(request.getApplication());
+ string appid(string("[") + app->getId() + "]");
+ xmltooling::NDC ndc(appid.c_str());
+
// If not SSL, check to see if we should block or redirect it.
if (!request.isSecure()) {
pair<bool,const char*> redirectToSSL = settings.first->getString("redirectToSSL");
@@ -485,6 +488,9 @@ pair<bool,long> ServiceProvider::doAuthorization(SPRequest& request) const
RequestMapper::Settings settings = request.getRequestSettings();
app = &(request.getApplication());
+ string appid(string("[") + app->getId() + "]");
+ xmltooling::NDC ndc(appid.c_str());
+
// Three settings dictate how to proceed.
pair<bool,const char*> authType = settings.first->getString("authType");
pair<bool,bool> requireSession = settings.first->getBool("requireSession");
@@ -555,6 +561,9 @@ pair<bool,long> ServiceProvider::doExport(SPRequest& request, bool requireSessio
RequestMapper::Settings settings = request.getRequestSettings();
app = &(request.getApplication());
+ string appid(string("[") + app->getId() + "]");
+ xmltooling::NDC ndc(appid.c_str());
+
try {
session = request.getSession(false, false, false); // ignore timeout and do not cache
if (session)
@@ -664,6 +673,9 @@ pair<bool,long> ServiceProvider::doHandler(SPRequest& request) const
RequestMapper::Settings settings = request.getRequestSettings();
app = &(request.getApplication());
+ string appid(string("[") + app->getId() + "]");
+ xmltooling::NDC ndc(appid.c_str());
+
// If not SSL, check to see if we should block or redirect it.
if (!request.isSecure()) {
pair<bool,const char*> redirectToSSL = settings.first->getString("redirectToSSL");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list