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?
Answer by Anil Sagar @ Google
·
Jun 01, 2017 at 04:18 PM
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