I see oauthV2.OAuth-v20-1.failed flow variable is always false in trace console while using the verify access token operation even though the token is invalid. Any one observed same ? Is it a bug ?
Anyone seen this ?
~~Q:S:TC~~
Solved! Go to Solution.
Hi @Anil Sagar,
I created a sample OAuth policy to check this. I noticed a weird behaviour. I can see that the variable
oauthV2.OAuth-v20-2.failed is false when I select OAuth policy in trace.
I tried to get the same variable through JavaScript and it shows 'true' there 🙂
Take a look for yourself:
JS code:
var flag = context.getVariable('oauthV2.OAuth-v20-2.failed'); print(flag);
Hi @Anil Sagar,
I created a sample OAuth policy to check this. I noticed a weird behaviour. I can see that the variable
oauthV2.OAuth-v20-2.failed is false when I select OAuth policy in trace.
I tried to get the same variable through JavaScript and it shows 'true' there 🙂
Take a look for yourself:
JS code:
var flag = context.getVariable('oauthV2.OAuth-v20-2.failed'); print(flag);
+1 , Thank you @Hadlee N.A , Yes, You are absolutely right ! It's a bug with trace at this point of time but it works as expected when retrieved using the code. We are following up with engineering team on this issue & will keep you posted. Thank you for the answer again, I am sure it will help others looking for same.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |