Sha256: f688eb242af090fe7ab36355e0544dbd030cf764bba66b099801da0c16c5edef

Contents?: true

Size: 186 Bytes

Versions: 15

Compression:

Stored size: 186 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.2.5/spec/support/basic_auth_encode_helpers.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/grape-1.2.5/spec/support/basic_auth_encode_helpers.rb
grape-1.2.5 spec/support/basic_auth_encode_helpers.rb
grape-1.2.4 spec/support/basic_auth_encode_helpers.rb
grape-1.2.3 spec/support/basic_auth_encode_helpers.rb
grape-1.2.2 spec/support/basic_auth_encode_helpers.rb
grape-1.2.1 spec/support/basic_auth_encode_helpers.rb
grape-1.2.0 spec/support/basic_auth_encode_helpers.rb
grape-1.1.0 spec/support/basic_auth_encode_helpers.rb
grape-1.0.3 spec/support/basic_auth_encode_helpers.rb
grape-1.0.2 spec/support/basic_auth_encode_helpers.rb
grape-1.0.1 spec/support/basic_auth_encode_helpers.rb
grape-1.0.0 spec/support/basic_auth_encode_helpers.rb
grape-0.19.2 spec/support/basic_auth_encode_helpers.rb
grape-0.19.1 spec/support/basic_auth_encode_helpers.rb