Hi,
I have a use case where I need to set auth level to particular value in journey A. When executing journey B with previous session, I need to verify if the auth level is equal to or greater than expected, and only then continue with the journey.
In journey A, I am using Modify Auth Level node to set the auth level. Once I execute journey A, I am able to check the value of AuthLevel
in user’s session properties when I hit /getSessionInfo
endpoint. It is being set as expected.
When I execute journey B with the previous session, the Auth level decision node does not seem to be picking up this value. My expectation was that it would validate the Session property value AuthLevel
. Instead, it is trying to evaluate the decision based on a shared state variable authLevel
(which is zero by default since this is a different journey)
In a scripted node, I am able to get the value of AuthLevel
from previous session, and then set that value to authLevel
shared state variable. On doing that, Auth Level Decision node works as expected.
However, wanted to check if I’m missing anything obvious here, since this seems to be the intended use case of Auth Level decision node.
P.S: I have whitelisted the property in session whitelisting settings. And I cannot use the “Get Session Data” node to directly put the value of AuthLevel
from session into authLevel
of shared state, since this node converts the value to string, and it causes an exception.