Page 2 of 3
Secure REST doesn't work
Posted: Fri Feb 14, 2014 7:14 pm
by Sam6522984
Hi Katya
Maybe I misunderstand you, but you tell me to enable the Appery.io proxy in the service, this is the checkbox under settings or I am wrong? This is already activated (first screenshot I provided). For the other services, I would like to wait until this one works.
I know that it doesn't work in the service test tab, it's described in the tutorial. I only test on the device with Appery Tester App or directly as .APK. The service doesn't work on my two Android smartphones neither as .APK nor in the tester-app.
I hope I could clarify my problem.
Thanks for your effort.
Secure REST doesn't work
Posted: Fri Feb 14, 2014 9:01 pm
by Kateryna Grynko
Sam,
You should enable proxy to test in desktop browser and disable proxy to test on device. This is how it works. Sorry for the misunderstanding.
Secure REST doesn't work
Posted: Sat Feb 15, 2014 2:44 pm
by Sam6522984
The issue still exists, I am talking about a secure REST service to store the API keys in the database. My API keys still don't get replaced by the proxy. I used this documentation: http://docs.appery.io/documentation/s....
Secure REST doesn't work
Posted: Mon Feb 17, 2014 8:52 am
by Kateryna Grynko
Sam,
Unfortunately, Secure REST doesn't replace parameters on service test. Bit this will work on preview.
Secure REST doesn't work
Posted: Mon Feb 17, 2014 1:00 pm
by Sam6522984
I thought the Secure REST can be used to replace API keys, is this false? I am not talking about the service test tab, I tried it with the app installed on a device and that doesn't work.
Secure REST doesn't work
Posted: Mon Feb 17, 2014 1:34 pm
by Kateryna Grynko
Hi Sam,
Yes, it replaces field 'key' with field 'value' in request. Please try in browser. You can check what data is send in F12 - Network tab.
Secure REST doesn't work
Posted: Mon Feb 17, 2014 1:59 pm
by Sam6522984
The data seems fine:
But still I get an error, that the credentials are wrong. I can run the same service with the same credentials put directly into the request and it works. I think the replacement doesn't work.
Thanks for the help
Secure REST doesn't work
Posted: Mon Feb 17, 2014 8:38 pm
by Maryna Brodina
Hello! Unfortunately it's a bug. The workaround is that you can change your server settings so that it accept either GET requests instead POST or json content type.
Secure REST doesn't work
Posted: Tue Feb 18, 2014 10:13 am
by Sam6522984
Are you going to fix that bug? I don't have control over the server and can't change the settings.
Thank you for your help.
Secure REST doesn't work
Posted: Tue Feb 18, 2014 10:27 am
by Kateryna Grynko
Hi Sam,
Unfortunately it is still unresolved. Developers are working on it. For now, you can use a suggested workaround only. Sorry for the inconveniences it might cost you.