{
public:
ShibTargetNSAPI(pblock* pb, Session* sn, Request* rq) {
+ m_pb = pb;
+ m_sn = sn;
+ m_rq = rq;
+
// Get everything but hostname...
const char* uri=pblock_findval("uri", rq->reqpb);
const char* qstr=pblock_findval("query", rq->reqpb);
const char *method = pblock_findval("method", rq->reqpb);
init(scheme, host, port, url.c_str(), content_type, remote_ip, method);
-
- m_pb = pb;
- m_sn = sn;
- m_rq = rq;
}
~ShibTargetNSAPI() {}
if (res.first) return (int)res.second;
// user authN was okay -- export the assertions now
+ param_free(pblock_remove("auth-user",rq->vars));
+ // This seems to be required in order to eventually set
+ // the auth-user var.
+ pblock_nvinsert("auth-type","shibboleth",rq->vars);
res = stn.doExportAssertions();
if (res.first) return (int)res.second;