cv / tv

Load and replay VCR cassettes with ease
MIT License
1 stars 1 forks source link

Support for Basic Auth or other confidential fields #2

Open maxlinc opened 11 years ago

maxlinc commented 11 years ago

Right now, it would be difficult to use TV with things like https://www.relishapp.com/vcr/vcr/v/2-4-0/docs/configuration/filter-sensitive-data. The recorded cassette would contain a placeholder instead of the actual password, which would cause playback to fail.

It would probably help if you supported https://www.relishapp.com/vcr/vcr/v/2-4-0/docs/hooks. Anytime someone writes a before_record hook for VCR, they could create an equivalent before_playback hook for TV. filter_sensitive_data is basically a shorthand before_record hook.

cv commented 11 years ago

Love the idea!