Implement consent for third party orgs in commmunity auth
commitf7d6709fae6edf3a190f84191100df2e653d5785
authorMagnus Hagander <magnus@hagander.net>
Wed, 30 May 2018 20:22:42 +0000 (30 16:22 -0400)
committerMagnus Hagander <magnus@hagander.net>
Wed, 30 May 2018 20:25:37 +0000 (30 16:25 -0400)
tree475f80c86151c8c3ba1786b83075468034005d0f
parent7980928885b8bf1553e10b5999c77117c3bf7bc4
Implement consent for third party orgs in commmunity auth

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.
pgweb/account/admin.py
pgweb/account/forms.py
pgweb/account/migrations/0003_cauth_consent.py [new file with mode: 0644]
pgweb/account/models.py
pgweb/account/urls.py
pgweb/account/views.py
templates/account/communityauth_noinfo.html
templates/account/login.html