Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Ignore parameters by name #76

Open
strarsis opened this issue Feb 28, 2016 · 1 comment
Open

Ignore parameters by name #76

strarsis opened this issue Feb 28, 2016 · 1 comment

Comments

@strarsis
Copy link

strarsis commented Feb 28, 2016

Github API requests can contain access_token parameter which value got sensitive data.
I could remove or overwrite its value, however, then replay wouldn't get a hit
for the request anymore as it checks for this parameter, too.
How can I let replay ignore this parameter?

@albertogasparin
Copy link
Contributor

Just manually change the get url to a regular expression. E.g. from:

GET /endpoint?access_token=ASD123456

to:

GET REGEXP /\/endpoint\?access_token=[^&]+/

This way replay will match the url no matter the token, but it will still fail if the token is missing to empty

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants