Finally got the authentication working. ActiveRecord and RestClient configured correctly.