engineyard / ey_services_api

gem for Partners to talk to the Services API
MIT License
4 stars 5 forks source link

"Authentication failure: no authorization header" when using EY ApiHMAC to connect #4

Open hajrice opened 12 years ago

hajrice commented 12 years ago

In the tutorial (https://github.com/engineyard/chronatog#verifying-requests-from-engine-yard), you mention using the ApiHmac for connecting to your EngineYard service.

class Engineyard::CustomersController < ApplicationController

use EY::ApiHMAC::ApiAuth::LookupServer do |env, auth_id|
  api_creds = YAML::load(File.open("#{RAILS_ROOT}/config/engineyard.yml"))  

  (api_creds["auth_id"]== auth_id) && api_creds["auth_key"]
end
.....

I keep getting "Authentication failure: no authorization header" when I access my URL directly in my browser though. Is this normal ?

hajrice commented 12 years ago

And when I try to install my addon from the services.engineyard.com site, I get this error:

(engine yard debugging tools / error logs)

"Connection refused - connect(2)"

Request url http://lvh.me:3000/engineyard/customers