Sha256: 8dbbbf98b0272384c0e6f54d5ccd8d92da2ceca93eba98c6a578e8702e33e71e

Contents?: true

Size: 270 Bytes

Versions: 14

Compression:

Stored size: 270 Bytes

Contents

require 'base64'

module Faraday
  class Request::BasicAuthentication < Request::Authorization
    # Public
    def self.header(login, pass)
      value = Base64.encode64([login, pass].join(':'))
      value.gsub!("\n", '')
      super(:Basic, value)
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
faraday-0.8.11 lib/faraday/request/basic_authentication.rb
faraday-0.8.10 lib/faraday/request/basic_authentication.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/faraday-0.8.9/lib/faraday/request/basic_authentication.rb
faraday-0.8.9 lib/faraday/request/basic_authentication.rb
faraday-0.8.8 lib/faraday/request/basic_authentication.rb
faraday-0.8.7 lib/faraday/request/basic_authentication.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/faraday-0.8.6/lib/faraday/request/basic_authentication.rb
faraday-0.8.6 lib/faraday/request/basic_authentication.rb
faraday-0.8.5 lib/faraday/request/basic_authentication.rb
faraday-0.8.4 lib/faraday/request/basic_authentication.rb
faraday-0.8.2 lib/faraday/request/basic_authentication.rb
avdi-faraday-0.8.1 lib/faraday/request/basic_authentication.rb
faraday-0.8.1 lib/faraday/request/basic_authentication.rb
faraday-0.8.0 lib/faraday/request/basic_authentication.rb