Hacker News new | ask | show | jobs
by fgielow 5205 days ago
Thanks for the replies so far!

I will give it a try today later. If I find any nice solutions I will give feedback.

When I thought of doing this I thought: "Why haven't I seen this before?", as it seems so feasible, but I never really read many discussions regarding this topic. Anyways, I do not dive in web programming too much, there may exist some solutions already.

I see that much of the programming that is done on the server-side could be done in the client-side with no collateral effects at all, if some cares were correctly taken!

Going even further, is there a way to securely manipulate remote databases through javascript? Maybe have a pair of asymmetric keys on the client-side/server-side (this server-side would be of the third party that offers the service, not mine) so I can authenticate the user at the server side. The client would then have to send this key with the operation he wants to perform in the database. If he has access, the operation is performed. Otherwise, it isn't.

Again, I do not know much about these topics. Maybe it is already done and I don't know. If you guys know of something like what I am saying, please let me know. It seems that it should not be very difficult to achieve these things in practice.