Sha256: 0ec1d25256a5b2d1fd0820779d128c2bccb9050f342ec04016e2e96a1cb774c7

Contents?: true

Size: 102 Bytes

Versions: 12

Compression:

Stored size: 102 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grape-0.19.0 spec/support/basic_auth_encode_helpers.rb
grape-0.18.0 spec/support/basic_auth_encode_helpers.rb
grape-0.17.0 spec/support/basic_auth_encode_helpers.rb
grape-0.16.2 spec/support/basic_auth_encode_helpers.rb
grape-0.16.1 spec/support/basic_auth_encode_helpers.rb
grape-0.15.0 spec/support/basic_auth_encode_helpers.rb
grape-0.14.0 spec/support/basic_auth_encode_helpers.rb
grape-0.13.0 spec/support/basic_auth_encode_helpers.rb
grape-0.12.0 spec/support/basic_auth_encode_helpers.rb
grape-0.11.0 spec/support/basic_auth_encode_helpers.rb
grape-0.10.1 spec/support/basic_auth_encode_helpers.rb
grape-0.10.0 spec/support/basic_auth_encode_helpers.rb