[Merge] lp:~flo-fuchs/postorius/postorius_persona into lp:postorius

Florian Fuchs flo.fuchs at gmail.com
Mon Jan 13 23:14:26 CET 2014


Florian Fuchs has proposed merging lp:~flo-fuchs/postorius/postorius_persona into lp:postorius.

Requested reviews:
  Terri (terriko)

For more details, see:
https://code.launchpad.net/~flo-fuchs/postorius/postorius_persona/+merge/201514

Hi, 

this change is mostly a switch from the django_social_auth library to django_browserid. 

It also includes some additions to the Persona audience verification process:

Usually, django_browserid uses the SITE_URL setting to check if the domain of the site matches the one provided with the Persona assertion (to prevent audience spoofing). In most cases, SITE_URL might probably only contain one domain. There are however possible scenarios running Postorius/Mailman under multiple domains (say, an Apache catch-all configuration). In those cases, adding new domains to the SITE_URL setting is a redundant task, because those domains also have to be added to the Mailman DB via Postorius (or REST). 

This change includes a ``get_audience`` function which includes domains from the Mailman DB when verifying the audience in the Persona assertion. The function is disabled by default, but can be activated in settings.py.

The code is tested (although I haven't run coverage...). But it sure won't hurt having someone else having a look at it.

Thanks!
Florian


-- 
https://code.launchpad.net/~flo-fuchs/postorius/postorius_persona/+merge/201514
Your team Mailman Coders is subscribed to branch lp:postorius.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 27742 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-coders/attachments/20140113/1371b78a/attachment-0001.diff>


More information about the Mailman-coders mailing list