Ok ... so this will help first if I go to the correct url:
authentication_url = @alm_url + "rest/is-authenticate"
What to read:
authentication_url = @alm_url + "authentication-point/authenticate"
Secondly, it helps if I am reading documents for RestClient, and not just looking at readme. The example in Instance Information helped a lot.
Now my code is as follows:
@alm_url = "http://alm_url/qcbin/" @user_name = "username" @user_password = "password" authentication_url = @alm_url + "authentication-point/authenticate" resource = RestClient::Resource.new(authentication_url, @user_name, @user_password) response = resource.get Rails.logger.debug response.inspect
EDIT:
Wow, I really thought about it. I could go with:
response = RestClient.get "http://#{@user_name}:#{@user_password}@alm_url/qcbin/authentication-point/authenticate"
source share