I am attempting to add a JAR to WSO2 IS 5.11.0 so that I can call the getSessionData
function from the Script Based Adaptive Authentication console.
I cloned the identity-conditional-auth-functions repository and built the session module found here using maven. I then placed the created JAR in each of the following places and restarted WSO2 IS:
- CARBON_HOME/repository/components/dropins
- CARBON_HOME/lib
- CARBON_HOME/repository/components/lib
- CARBON_HOME/repository/components/extensions
From the Script Based Adaptive Authentication console I then call getSessionData
which is a function registered inside of the JAR I added. When I login and trigger the script I get the following error:
eval>:9 ReferenceError: "getSessionData" is not defined
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291)
at jdk.scripting.nashorn/jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1616)
...
How can I get WSO2 IS to add custom functions that I am able to call from the Script Based Adaptive Authentication console?