Sha256: 656bc3d57697b3a5694e85d94c7a1b3d9805cd9d1d331d6cdd7e541985534618

Contents?: true

Size: 217 Bytes

Versions: 10

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

10 entries across 10 versions & 2 rubygems

Version Path
grape-1.5.3 spec/support/basic_auth_encode_helpers.rb
grape-1.5.2 spec/support/basic_auth_encode_helpers.rb
grape-1.5.1 spec/support/basic_auth_encode_helpers.rb
grape-1.5.0 spec/support/basic_auth_encode_helpers.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/spec/support/basic_auth_encode_helpers.rb
grape-1.4.0 spec/support/basic_auth_encode_helpers.rb
grape-1.3.3 spec/support/basic_auth_encode_helpers.rb
grape-1.3.2 spec/support/basic_auth_encode_helpers.rb
grape-1.3.1 spec/support/basic_auth_encode_helpers.rb
grape-1.3.0 spec/support/basic_auth_encode_helpers.rb