Page 1 of 1

Problem when using Secure Proxy to hide database_ID in login_service

Posted: Mon Aug 01, 2016 6:48 pm
by Joni de Campos

I set the Secure Proxy with a credential collection to store private keys (Use proxy + store sensitive (private) data in database).

So my database_id key is set in my credentials collection with the key name being mydb_Proxy and set the value for this key with the my database_id.

The idea is not to expose my database_ID in the client js code. ( I am using the Render all pages in one HTML file (jQuery Mobile multi-page template) )

Then I replaced the database_ID value in my database_settings with {mydb_Proxy}.

When I try to login I get the following error from the browser:

Failed to load resource: the server responded https://api.appery.io/rest/1/proxy/tu... a status of 400 (Bad Request)

{"code":"PTCT010","description":"Mandatory parameter 'appery-rest' is missing"}.

Any idea ?


Problem when using Secure Proxy to hide database_ID in login_service

Posted: Thu Aug 04, 2016 3:31 pm
by Illya Stepanov

Hi Joni -

When you invoking your service please check whether the headers parameters include the "appery-rest" inside the request headers in the network tab in the browser developer tools.
:: https://docs.appery.io/docs/using-bro...