5 karma · joined Nov 22, 2016 (10y ago) · 3 submissions
comment 9y ago · link · parent
I believe this custom auth layer is best handled by allowing code with restricted api access and time constraints. The technical approach cloudflare used to implement its edge workers by embedding v8/js [3] would be perfect here.
[1] https://firebase.google.com/docs/firestore/security/get-star...
example:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
[2] https://firebase.google.com/docs/database/security/[3] https://blog.cloudflare.com/introducing-cloudflare-workers/