ColinMaudry / sparql-router

Application to turn SPARQL queries into APIs and use them in a simple Web app (Express + Vue)
http://queery.link
MIT License
9 stars 4 forks source link

Protect query editing and deleting with a token #69

Open ColinMaudry opened 8 years ago

ColinMaudry commented 8 years ago

A bit like Google docs, you can share a link for viewing:

http://queery.link/#/view/my-query

And another one for editing:

http://queery.link/#/view/my-query?token=754d54cc12

If the provided token is not right or empty, the user is redirected to the view page.

ColinMaudry commented 8 years ago

It could also be a user defined password... or a short hash of the current time.

But where do I store the token, since the triple store is open?