summaryrefslogtreecommitdiff
path: root/postgresqleu/auth.py
AgeCommit message (Collapse)Author
2024-05-08Update signal syntax for django 4.2Magnus Hagander
2023-06-07Sync up to latest version of pgweb auth plugin (again)Magnus Hagander
2023-06-07Sync up to latest version of pgweb auth pluginMagnus Hagander
2020-08-11Import latest version of community auth pluginMagnus Hagander
This includes an URL endpoint to receive push updates (enabled inividually for each instance) when using postgresql.org community authentication.
2020-07-13Remove unused importsMagnus Hagander
2020-04-04User.is_authenticated is no longer a callable in newer djangoMagnus Hagander
2020-02-26Sync up postgresql community auth plugin to latest-and-greatestMagnus Hagander
2019-11-01Switch to using pycryptodome instead of pycryptoMagnus Hagander
pycrypto is not being maintained, and pycryptodome is theoretically a drop-in replacement (in practice, it seems it was close)
2019-01-10Update authentication plugin for py3Magnus Hagander
Lots of encoding things around the encryption and base64 changes needed.
2019-01-10Import related fixes from 2to3Magnus Hagander
2019-01-04Switch to using requests for http requestsMagnus Hagander
It's a lot cleaner API than urllib2, and will be easier once we port version. Hopefully this doesn't break something. Probably it does break encoding somewhere, because py2.
2018-12-15Replace usage of has_key()Magnus Hagander
It has been deprecated, and instead we should use "in" and "not in", so make that change across the board.
2018-12-14Fix blankline related warningsMagnus Hagander
2018-12-14Fix comment warningsMagnus Hagander
In passing remove some comments that were pointless
2018-12-14Fix spacing around operatorsMagnus Hagander
2018-12-14Manual fix of further whitespace issuesMagnus Hagander
Many of these were masked with the using of tabs, but were basically incorrect all the time. It's all in places where whitespace doesn't actually matter, but let's try to match up to PEP8.
2018-12-14Replace tabs with spacesMagnus Hagander
In an effort to close up with PEP8, we should use spaces for indent rather than tabs... Time to update your editor config!
2018-12-12Make pg community auth optionalMagnus Hagander
Adds very basic support for running without pg community auth. No support for signup, password change, or anything like that yet, but at least users can be managed in /admin/ for dev environments.
2018-01-13Fix typo in commentMagnus Hagander
2017-08-28Support setting up without community auth without ugly hacksMagnus Hagander
2015-12-12Replace simpljson imports with jsonMagnus Hagander
This has been in standard python since 2.6, and we don't really care about supporting anything older than that (even our old and soon to be upgraded environments use 2.7)
2015-04-21Return proper errorcodes from auth pluginMagnus Hagander
Instead of raising an exception which will cause both a server log and an email to be sent, return a proper http 400 message when the incoming authentication request is bad. This will also show the proper error message to the client, instead of a generic internal server error.
2015-04-21Removed unused variableMagnus Hagander
2014-12-30Add suppot for importing upstream usersMagnus Hagander
Initially, support this for invoices and for managers of sponsorships, which are the most likely usecases for it. More usecases can be added in the future as they are found.
2014-01-01Remove unused code and fix bugs uncovered by explicit importingMagnus Hagander
2013-11-07Give a nicer error than internal server error on duplicate emailMagnus Hagander
This can happen in the pgeu system due to some legacy data. We have a constraint in the db preventing it from happen, which turns it into an Internal Server Error. Change that so we instead give a message that tells people to email webmaster@ to get it fixed.
2013-06-20Update community authentication to use encrypted parameters for redirectionMagnus Hagander
2011-12-28Implement postgresql.org community authentication 2.0Magnus Hagander
2010-04-14Enforce lowercase usernamesMagnus Hagander
2009-02-20Move connection string for authentication services to config fileMagnus Hagander
2009-02-20Inherit authentication from ModelBackend, should fix admin permissionsMagnus Hagander
issues.
2009-02-20Add community login auth moduleMagnus Hagander