Sha256: 3c1e2091d49b21ede60f5546605266e2dc5454c701c4c6b96f6ff0a760d85b2a

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

Before do
  ENV['CONJUR_KEY_PAIR_URL'] ||= "http://#{Capybara.current_session.server.host}:#{Capybara.current_session.server.port}"
end

Before do
  unless Slosilo[:"authn:#{ENV['CONJUR_ACCOUNT']}"]
    default_key = <<-KEY
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvqNru+LycLSew3FTa+To
QQCVTui+Ccyj8X5vtFhCB1i4KLg2ShGlyt8Yh1dX2Gl2ckugv4JfRSntmRFXCyCw
stXe5U0p+4/WpzyjZ9t38emlRU3s9e6N2f4U+xSpR1CvemA5hZq11yNMTSKw2FCi
MSqxzpvXc7uae+6kEMgxoQ7njATCPyeZW6QV920jInuvlWQDdSKZA7QQ0q7HcKSD
PntKxuUBzioyurgr+HWznK1oCltYJlGMOca9CiQqvtUxAFiz0OppV+21Qeu/1ZwB
CCxk2aZ3vy7kQ2gDKRsNXEkH4krQsBNoc7U+Tj4F24qx32DfWCiwaIk/M+Vfsx8n
hwIDAQAB
-----END PUBLIC KEY-----
KEY
    key_str = ENV['CONJUR_AUTHN_PRIVATE_KEY'] || default_key
    key = Slosilo::Key.new key_str
    Slosilo[:"authn:#{ENV['CONJUR_ACCOUNT']}"] = key
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
conjur-asset-key-pair-0.2.1 features/support/hooks.rb