mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00

This adds a new model for CommunityAuthOrg representing the organisation that runs the system that's being authenticated (e.g. PostgreSQL Europe or PostgreSQL US). For this we just keep a name and a "is consent required" flag. In the case where consent is required, we keep track on a per-user basis of if they have given consent to sharing their data with this organistion. If they haven't, we ask for it before completing the redirect and actually sharing the data.