1
IP of the entity that does auth, IP of entity that submits request
Source: supabase/supabase#12705 · opened by @amypgon
Hi there. When provisioning a database, could you please inject a function like auth.ip() (beside auth.uid, auth.role, auth.email) into the auth schema to achieve this: ip of the entity that does auth, ip of entity that submits request
Something along the following lines?
current_setting('request.headers', true)::json->>'x-forwarded-for'
This function could then be used when defining RLS policies
Thanks
Something along the following lines?
current_setting('request.headers', true)::json->>'x-forwarded-for'
This function could then be used when defining RLS policies
Thanks
No pledges yet. Be the first to back this.
Comments
Similar requests
Supabase with Swift Playgrounds IPad
2 votes · 0 comments
Add a 'Post User Creation' auth hook (or 'After User Creation')
8 votes · 0 comments
Ability to allowlist IPs on dashboard
5 votes · 0 comments
Scoped Auth via non-unique emails on auth.users
4 votes · 0 comments
Cannot add "email" provider to an existing user
1 vote · 0 comments
No comments yet.