EnCiv / civil-server

A node server, socket api infrastructure, user login, and mongo db that can be used as a component in other civic-tech projects
Other
1 stars 2 forks source link

GDPR Cookie Consent #45

Open ddfridley opened 3 months ago

ddfridley commented 3 months ago

When the user first visits our website, we need them to agree to cookies.

Image

justin-b-yee commented 3 months ago

Hi @ddfridley:

I just wanted to make sure I understand the specs correctly.

Is the new mongo-collections model just to store/manage a list of consent options that are displayed in the popup, and the consent options themselves are stored client-side via the package? And then in server-react-render the options are passed in the request and accessed through req.cookies?.OPTION to determine what to enable/disable?

ddfridley commented 3 months ago

See this the-ultimate-checklist-for-gdpr-compliant-websites for background info. This task has some figuring out to do.

The collection is for recording the date, what was consented to, and any information we have (like IP address) on who consented, but also userId if we have it. What we do with that information in the future isn't clear or well defined. Maybe we just have to have it around as proof. But we can create issues for what to do with the info as we figure it out.