Open ThaminduDilshan opened 1 month ago
Tested with #5242
snapshot build which doesn't have the graal engine updates. Issue is not reproducible in that pack.
Therefore should be related to the Graal changes.
Related UI issue: https://github.com/wso2/product-is/issues/20448
Describe the issue: We can use the following adaptive logic to permanently set a user claim.
In the latest snapshot build, if this function is used inside a callback function of some other adaptive function and if the whole logic is defined inside the
onFail
callback function of a step, the claim update doesn't work.How to reproduce:
test
Configure an application for login with the following adaptive script.
Note: This script uses
httpPost
function to reproduce the issue. However any other function with callbacks can be used for this.invoked
. However it doesn't work, but the log gets printed.Expected behavior:
user.localClaims
should set the claim permanently.Additional observations
onSuccess
callback of the step, it will work without any issue.onFail
callback.