Hello,
I have created the datasets for my site and I have created a Backend folder with the http-functions.js file.
I have also created a get function (returns data from a specific collection, for example A list of Patient info) inside "http-functions.js”
Lastly, I have developed an iOS and android app and call this function and get all json data. Unfortunatelly without any security. If I set dataset permissions to admin or site member I always get this error → {“error”:{“name”:“Error”,“errorGroup”:“User”,“code”:“WD_PERMISSION_DENIED”,“level”:“warn”}}
If I set permissions to everyone I am ok but the data is completely exposed. For example the url
https://www.xxxxxxxxxx.com/_functions/Patient/patientA@gmail.com displays all the data of patient A to everyone.
My question is: Is there a login mechanism I can implement between the site and my mobile app so that when I use the call function and get the json data, the data is secured?
Is there another way to solve this problem?
Thank you.