vcr_mask_freshdesk_endpoint_auth.rb 336 B

123456
  1. # Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
  2. # The API key is used only inside the base64 encoded Basic Auth string, so mask that as well.
  3. VCR.configure do |c|
  4. c.filter_sensitive_data('<IMPORT_FRESHDESK_ENDPOINT_BASIC_AUTH>') { Base64.encode64( "#{ENV['IMPORT_FRESHDESK_ENDPOINT_KEY']}:X" ).chomp }
  5. end