Sha256: 5e8fe9033f42a18e6311da7b0fc52d8e2a42b6375a347e0f0302aef08565dfdd

Contents?: true

Size: 102 Bytes

Versions: 5

Compression:

Stored size: 102 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
grape-security-0.8.0 spec/support/basic_auth_encode_helpers.rb
grape-0.9.0 spec/support/basic_auth_encode_helpers.rb
grape-0.8.0 spec/support/basic_auth_encode_helpers.rb
grape-0.7.0 spec/support/basic_auth_encode_helpers.rb
grape-0.6.1 spec/support/basic_auth_encode_helpers.rb