Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
   process : function() {
     var saml_passed = true;
+ 
+    var qs = request.getQueryString();
+    this.logDebug('qs = ' + qs);
+    if(qs) {
+        if(qs.match(/survey_take.do/g)) {
+            return this.loginUser('guest');
+        }
+    }
 
     var samlResponse = request.getParameter("SAMLResponse");
     var relayState = request.getParameter("RelayState");

...YMMV. In our instance, the resulting behavior is that for surveys, the user is logged in as guest and given access to the survey. A minor downside to this is that you really don't know who filled out the survey; in any case, it's done on behalf of the original incident contact (and likely, it is actually the contact). Subsequent attempts to log in hit the authN wall, as you would hope.

Survey Conditions

The plugin provides "Survey Conditions" – similarly

...