Securing your Broadcast and Presence messages on Supabase Realtime with RLS

Опубликовано: 08 Октябрь 2024
на канале: Supabase
1,654
87

Authorization for Supabase Realtime Broadcast and Presence is here! You can now control who can send and receive broadcast and presence messages via RLS.

Read more on our blog post: https://supabase.com/blog/supabase-re...

Enabling authorization on your broadcast and presence is easy with two steps. Step 1, pass the private flag on your client. Step 2, setup row level security policies on messages table in the realtime schema. You can define insert policies to determine who can send messages and select policies to define who can read the messages.

Find the source code of the app: https://github.com/supabase/supabase/...

CHAPTERS:
00:00 Intro
00:12 Broadcast & Presence and the current issues
00:46 Setup authorization for Broadcast and Presence
01:17 Defining RLS policies
03:45 Testing the app with authorization
04:40 Outro

💻 Videos to watch next:
▶    • Implement Authorization using Row Lev...  
▶    • Add live cursor sharing using Flutter...  
▶    • Postgres Realtime location sharing wi...  

👇 Learn more about Supabase 👇

🕸 Website: https://supabase.com/
🏁 Get started: https://app.supabase.com/
📄 Docs: https://supabase.com/docs

🔔 Subscribe for more tutorials and feature updates from Supabase:    / @supabase  

📱 Connect with Us:
🐙 Github: https://www.github.com/supabase
💬 Discord: https://discord.supabase.com/
🐦 Twitter:   / supabase  
▶ Instagram (follow for memes):   / supabasecom  


ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.

Build in a weekend, scale to millions.

#Supabase #AppDevelopment #RealtimeApps #DeveloperTools