Sha256: 8554ee1d9ce7d3fd754ab8cdf1497ced0f203778915d4002dab6a3fc99c2a624

Contents?: true

Size: 103 Bytes

Versions: 16

Compression:

Stored size: 103 Bytes

Contents

def encode_basic_auth(username, password)
  "Basic " + Base64.encode64("#{username}:#{password}")
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
grape-0.6.0 spec/support/basic_auth_encode_helpers.rb
grape-0.5.0 spec/support/basic_auth_encode_helpers.rb
grape-0.4.1 spec/support/basic_auth_encode_helpers.rb
grape-0.4.0 spec/support/basic_auth_encode_helpers.rb
grape-0.3.2 spec/support/basic_auth_encode_helpers.rb
grape-0.3.1 spec/support/basic_auth_encode_helpers.rb
grape-0.3.0 spec/support/basic_auth_encode_helpers.rb
grape-0.2.1.1 spec/support/basic_auth_encode_helpers.rb
grape-0.2.6 spec/support/basic_auth_encode_helpers.rb
grape-0.2.5 spec/support/basic_auth_encode_helpers.rb
grape-0.2.4 spec/support/basic_auth_encode_helpers.rb
grape-0.2.3 spec/support/basic_auth_encode_helpers.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/grape-0.2.2/spec/support/basic_auth_encode_helpers.rb
grape-0.2.2 spec/support/basic_auth_encode_helpers.rb
grape-0.2.1 spec/support/basic_auth_encode_helpers.rb
grape-0.2.0 spec/support/basic_auth_encode_helpers.rb