Please Note: This repo contains known security vulnerabilities and is no longer maintained. Use at your own risk!
This project is a reference implementation for a privacy dashboard that uses Convertro's GDPR APIs.
The code is very minimal and simplistic and is written with Flask.
Please see the full GDPR API documentation at Convertro Knowledge Base -> GDPR Center -> API Documentation.
Clone this repo, rename the .env.example
file to .env
and set your private keys.
Run docker-compose up
and open http://localhost:5000/ to view it in the browser.
Note: this code is not intended for production. It will run in debug mode, and the server will reload itself on code changes.
- The index page contains a link to the Cookie Reflection API to retrieve the cookies.
- The
/cookie-handler
route is passed as theredirect_url
parameter to the Cookie Reflection API. The functionhandler
is bound to this URL and will handle the redirect. handler
redirects to an error page in case the Cookie Reflection API encountered an error (the returned query paramstatus_code
is not 200). You may handle this case differently.- Otherwise, it makes a server-side request to the
/v1/requests
API, and redirects to a success or an error page according to the http status code of the response. Here too your logic may vary. - This example doesn't utilize other existing APIs. Please see the full API documentation for more details about those endpoints.
- In addition, you may want to provide a notification mechanism to notify your users when their data is ready, such as email, sms or push notification.
See Contributing.md for more information.
convertro-gdpr-dashboard-reference is MIT licensed.