oauthV2.OAuth-v20-1.failed is always false in verifyaccesstokenpolicy even though the token is invalid

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 Solved
0 2 160
1 ACCEPTED 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:

4906-oauthtrace.jpg

4907-oauthtrace2.jpg

JS code:

var flag = context.getVariable('oauthV2.OAuth-v20-2.failed');
print(flag);

View solution in original post

2 REPLIES 2

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:

4906-oauthtrace.jpg

4907-oauthtrace2.jpg

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.