ScriptedPredicate return value?

Misagh Moayyed mmoayyed at unicon.net
Tue May 12 08:12:40 EDT 2015


Are there examples or reference that would describe how a script that is
executed by ScriptedPredicate can return a value? Most references I have
found seem to demonstrate that a function inside the script is executed
and its value consumed. 

 

This is a simple script I am using to test this functionality, and have
tried various permutations of "return" all of which seem to error out with
a parser exception:

 

load("nashorn:mozilla_compat.js");

importClass(org.slf4j.LoggerFactory);

importClass(org.slf4j.Logger);

logger = LoggerFactory.getLogger("net.shibboleth.idp.SilverAuthnClass");

logger.info("everything loaded fine");

return true;

 

Misagh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150512/09ffa7e3/attachment.html>


More information about the users mailing list