vcr_mask_facebook_sensitive_data.rb 273 B

123456789
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. VCR.configure do |c|
  3. c.before_record do |i|
  4. if i.response.body.include?('"access_token":"')
  5. i.response.body.gsub!(%r{"access_token":"[^"]+"}, '"access_token":"***"')
  6. end
  7. end
  8. end