How to Hide a flow variable

Once after the execution of OAuthV2 policy to VerifyAccessToken, access_token flow variable starts appearing in the trace tool with the real Bearer token, However Authorization header is masked in trace tool by default. How to mask/hide the access_token flow variable not to appear in trace?

Solved Solved
0 1 392
1 ACCEPTED SOLUTION

@Arunkumar Prusothaman ,

You can define Mask configuration using Apigee Edge Management API. More details you can find in the documentation here.

For example,

curl -H "Content-type:text/xml" -X POST -d \
'<MaskDataConfiguration name="default">
  <Variables>
	<Variable>{flowvariablename}</Variable>
  </Variables>
</MaskDataConfiguration>' \
https://api.enterprise.apigee.com/v1/o/{org_name}/maskconfigs \
-u email:password

View solution in original post

1 REPLY 1

@Arunkumar Prusothaman ,

You can define Mask configuration using Apigee Edge Management API. More details you can find in the documentation here.

For example,

curl -H "Content-type:text/xml" -X POST -d \
'<MaskDataConfiguration name="default">
  <Variables>
	<Variable>{flowvariablename}</Variable>
  </Variables>
</MaskDataConfiguration>' \
https://api.enterprise.apigee.com/v1/o/{org_name}/maskconfigs \
-u email:password