Sha256: cae7b11006fca0af4221a4296aacc16d0ae5b6647f033feb15c2298085ad75f3

Contents?: true

Size: 217 Bytes

Versions: 6

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

module Spec
  module Support
    module Helpers
      def encode_basic_auth(username, password)
        "Basic #{Base64.encode64("#{username}:#{password}")}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-1.8.0 spec/support/basic_auth_encode_helpers.rb
grape-1.7.1 spec/support/basic_auth_encode_helpers.rb
grape-1.7.0 spec/support/basic_auth_encode_helpers.rb
grape-1.6.2 spec/support/basic_auth_encode_helpers.rb
grape-1.6.1 spec/support/basic_auth_encode_helpers.rb
grape-1.6.0 spec/support/basic_auth_encode_helpers.rb