David Diaz
Posts: 0
Joined: Tue Jun 26, 2012 3:10 pm

Titanium ACS - REST service config -

Hi, I'm triying to configa a REST service to connect with Titanium ACS but somehow it's allways giving me an error message:

401 Unauthorized request. Please provide a valid App key or Oauth key

The key provided is correct and I've used it a lot of times, also tryed with cUrl in the command line and succeeded, but not here.

I've set the key as header and logind, password as body parameters, don't know if somebody could help me to configure this.

Here's the commands to join:

http://cloud.appcelerator.com/docs/rest

Thanks in advance.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Titanium ACS - REST service config -

Can you share the curl command? You can then delete or reset the private keys.

David Diaz
Posts: 0
Joined: Tue Jun 26, 2012 3:10 pm

Titanium ACS - REST service config -

Hi Max, thanks for your fast reply, here's the curl command as they show in the docs page:

$ curl --verbose -b cookies.txt -c cookies.txt -F "login=a href="mailto:mike@appcelerator.com" rel="nofollow"mike@appcelerator.com/a" -F "password=food" https://api.cloud.appcelerator.com/v1...

Edit: I cannot prevent the link from being cut, you can check the curl command in this link, under the" Testing with cURL and wget" section, in the second "command line like" box.

http://cloud.appcelerator.com/docs/rest

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Titanium ACS - REST service config -

Ah...yes, Appcelerator uses cookies for some reason. Let me see if I can get it working.

I can get the entire link if I right-click and do copy link.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Titanium ACS - REST service config -

Because the service requires cookies, it won't work from Test Connection.

It should work from the page, assuming that you login, a cookie will be created and when you make the request the cookie should be sent automatically.

David Diaz
Posts: 0
Joined: Tue Jun 26, 2012 3:10 pm

Titanium ACS - REST service config -

Thanks for your support Max, I will give it a try along the day.

Return to “Issues”