Re: [Dev] Using Tensor Flow in Risk Based Adaptive Authentication

2019-02-05 Thread Senthalan Kanagalingam
[+dev] On Tue, Jan 29, 2019 at 9:42 PM Senthalan Kanagalingam wrote: > Hi all, > > I have tried to change the authentication script to publish the event from > it rather than our analytical event publisher to overcome the faced issue. > Here is the script. > > function getPayload(context, isSuce

Re: [Dev] Using Tensor Flow in Risk Based Adaptive Authentication

2019-02-05 Thread Dilin Dampahalage
Hi Senthalan, Why do we need to execute the steps in the "getTensorFlowResult"? Instead of this why can't we have a single function that will just publish data to our API exposing the tensor flow model and return the result send by the API? After getting the result we can execute the steps separat

Re: [Dev] Using Tensor Flow in Risk Based Adaptive Authentication

2019-02-05 Thread Ruwan Abeykoon
Hi All, Any function in the function library needs to be reusable. So here are some guidelines. 1. Function needs to accept necessary parameters 2. Should return a result 3. Should not have "side effects" 4. Can accept other functions as parameters 5. Can accept other functions as event handlers

Re: [Dev] Using Tensor Flow in Risk Based Adaptive Authentication

2019-02-06 Thread Pulasthi Mahawithana
Hi Ruwan, As per the discussion with Senthalan, we may have an issue with using the event handlers passed to the "callTensorFlow" function inside the callback handler of the http call. Those need to be stored in a global variable if we are to use them in the http callback. In such case, we need to