Back to articles
Adding Attribute-Based Access Control to a Real-Time Collaborative App with OpenTDF

Adding Attribute-Based Access Control to a Real-Time Collaborative App with OpenTDF

via Dev.toEugene Yakhnenko

I built Skedoodle , an open-source real-time collaborative sketching app. Think a lightweight Figma for doodling: multiple users connect over WebSocket, draw on a shared infinite canvas, and see each other's cursors move in real time. It's built with React, TypeScript, Two.js for vector graphics, and Zustand for state management, with an Express backend handling persistence and real-time sync. Building the interactive parts was the fun challenge. Throttled rendering at 60fps, path simplification algorithms to keep stroke data lean, touch support, pan and zoom on an infinite canvas, undo/redo that works across multiple collaborators. Skedoodle is a proper interactive app, not a toy demo. But it had a glaring gap: no authorization . Authentication? Sure, users logged in via OIDC. But once you were in, you could access any sketch if you knew the ID. Think YouTube: every video is technically accessible if you have the link, even "unlisted" ones. Skedoodle had the same problem. There was no

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles