lib/cloudfiles/authentication.rb in cloudfiles-1.4.4 vs lib/cloudfiles/authentication.rb in cloudfiles-1.4.5
- old
+ new
@@ -8,14 +8,14 @@
# cdmmgmtpath, storagehost, storagepath, authtoken, and authok variables on the connection. If it fails, it raises
# an AuthenticationException.
#
# Should probably never be called directly.
def initialize(connection)
- path = '/auth'
+ path = '/v1.0'
hdrhash = { "X-Auth-User" => connection.authuser, "X-Auth-Key" => connection.authkey }
begin
- server = Net::HTTP.new('api.mosso.com',443)
+ server = Net::HTTP.new('auth.api.rackspacecloud.com',443)
server.use_ssl = true
server.verify_mode = OpenSSL::SSL::VERIFY_NONE
server.start
rescue
raise ConnectionException, "Unable to connect to #{server}"
@@ -47,6 +47,6 @@
else
hostname
end
end
end
-end
\ No newline at end of file
+end