gahabeen / biota

A simple database framework for Fauna
https://gahabeen.github.io/biota
MIT License
54 stars 2 forks source link

Add unlogged (guest) access #49

Open gahabeen opened 4 years ago

gahabeen commented 4 years ago

Summary

Give access to a document via a unique token. The access can only have a get right (read). We can imagine giving permissions to the relations inside the document with the same read right.

Mechanisms could be:

This way the token can have an easy expiration management system.

Basic example

db.document('emails', '123').share()

Motivation

It's a fairly common feature that lets you share some information with external users.