summaryrefslogtreecommitdiff
path: root/passlib/apache.py
Commit message (Collapse)AuthorAgeFilesLines
* CryptPolicy deprecated, part2 - updated rest of library to use CryptContext ↵Eli Collins2012-04-171-1/+1
| | | | directly
* updated passlib.apache module's api - more flexible to use, changed some ↵Eli Collins2012-04-171-349/+793
| | | | ambiguous method names
* updated test support & py3 compat code from an external libraryEli Collins2012-03-121-2/+2
| | | | | | | | | | | | | | | | passlib.tests ------------- * deprecated support for unittest 1... accumulated too many backports, planning to require unittest2 in next release. * case_prefix renamed to shortDescription * test case now archives & clears warning registry state in addition to warning filter state passlib.utils.compat -------------------- * a bunch of the bytes-related functions were renamed for clarity * NativeStringIO alias added * trange alias merged into irange
* misc bugfixes from round of changesEli Collins2012-01-181-2/+2
| | | | | | | | | * added str_to_[ub]ascii to wrap hexdigest() calls * fixed some h64big calls I missed * some py3 fixes * removed utils.compat.aliases, using overlay to replace real compat module instead (to agree w/ imports already in code)
* import cleanupsEli Collins2012-01-181-3/+2
| | | | | | | | | | | | | | | * moved bytes compat functions from utils to utils.compat (bord, bjoin, bjoin_ints, bjoin_elems, ujoin) * renamed bord -> belem_ord for clarify * a bunch of to_native_str() always use ascii, and have fixed input types (always bytes or always unicode). these don't need overhead of to_native_str(), so replaced those calls with two new funcs: compat.bascii_to_str() / compat.uascii_to_str() * cleaned up a lot of imports from utils/utils.compat to pull from correct module * simplified the to_string() logic of a bunch of handlers to reduce unicode<->byte transitions
* couple of minor tweaks - basic unittests pass 2.7 & 3.2Eli Collins2011-12-061-1/+1
|
* ran a custom 2to3 fixer to replace all u"" with u() and add an import from ↵Eli Collins2011-12-061-2/+2
| | | | compat.u
* added compat.unicode imports in a number of placesEli Collins2011-12-061-2/+2
| | | | | | | | this distinguishes the types, so that for isinstance() tests... * 'unicode' always means the unicode type * 'bytes' always means the bytes type * 'str' always means the native string type
* added compatibility module (passlib.utils.compat)Eli Collins2011-12-061-3/+4
| | | | | | | | | exports specialized range & map aliases, and some dict helpers * all dict.iteritems() calls replaced with compat.iteritems(dict) * all xrange() calls replaced with compat.irange() * all range() calls replaced with compat.trange() and compat.lrange() as appropriate * all map() calls replaced with compat.lmap()
* branch exploring feasibility of removing need for 2to3Eli Collins2011-12-061-1/+1
| | | | this commit just fixes some error raises
* all verify() methods now use "constant time" comparison function (see ↵Eli Collins2011-12-011-2/+4
| | | | CHANGELOG for details)
* GAE compatibility fix: changed apache UTs to not rely on filesystem.Eli Collins2011-08-121-3/+36
| | | | | | * added private constructor Htpasswd._from_string(), will clean it up and make public in future * most apache tests now use _from_string() so they don't have to write to fs * tests which still require writing to fs (mainly the autoload tests) now skipped for GAE
* removed duplicate code inside passlib.apacheEli Collins2011-07-271-10/+12
|
* stripped trailing whitespace from a bunch of filesEli Collins2011-07-081-20/+20
|
* updated changelog to include python 3 compat; various other documentation ↵Eli Collins2011-06-291-23/+1
| | | | updates
* apache module rewritten for py3 compatEli Collins2011-06-201-53/+183
| | | | | | | | * added 'encoding' kwd to Htpasswd, Htdigest constructors, allowing user/realm encoding to be specified. * treats file as bytes internally * added UTs for encoding-specific behavior * added render_bytes() util helper - py2/3 compatible replacement for using % formatting with bytes
* replaced "raise exc, msg" with "raise exc(msg)" everywhere (working on py3k ↵Eli Collins2011-03-281-6/+6
| | | | compat, changes made by 2to3)
* split passlib.base into passlib.registry & passlib.context - the two have ↵Eli Collins2011-03-221-1/+1
| | | | little to do with eachother
* documentation work & rearrangingEli Collins2011-03-221-1/+1
| | | | | | | | | | ================================ * added documentation for overview, ldap digests * lots of other documentation updates * renamed passlib.unix -> passlib.hosts * renamed passlib.sqldb -> passlib.servers * added passlib.servers.custom_app_context for quickstart purposes * added ldap {CLEARTEXT} support
* passlib.apache: improved interface; added docs & UTs (all passlib.apache uts ↵Eli Collins2011-03-171-50/+234
| | | | pass)
* apache & misc workEli Collins2011-03-151-11/+181
| | | | | | | | ================== * added prelim helpers for htpasswd & htdigest * bugfix to ldap hashes * added CryptContext.replace() back * NOTE: all above need UTs and docs
* fixed wart - CryptContext now searches schemes in order, instead of reverse ↵Eli Collins2011-03-051-1/+1
| | | | order (and default is now first option)
* large rearrangment of structureEli Collins2011-02-161-1/+1
| | | | | | | | | | | | | | | | | | | | =============================== * moved passlib.hash package to passlib.drivers * combined some passlib.driver modules together (eg ext_des_crypt merged w/ des_crypt) * renamed all hash classes to lower case, to match name attrs. * renamed ext_des_crypt to bsdi_crypt * added special proxy module "passlib.hash" which lazily loads drivers from correct location - registry system reworked, has list of locations for builtin drivers, and capability for apps to add more - passlib.hash *is* the registry, changes to it affect list - thanks to this, documentation can remain, pointing to passlib.hash.xxx as location for driver * moved passlib.utils.handlers to passlib.utils.drivers, renamed classes from XxxHandler -> XxxHash * combined all driver tests into single passlib/tests/test_drivers.py file * NOTE: disabled default unicode testing, not ready for that yet * all driver UTs pass (others not checked)
* rearranged some modulesEli Collins2011-01-301-1/+1
|
* wow. lots of rearrangingEli Collins2011-01-281-1/+26
| | | | | | | | ======================== * back to 1.2 structure * moved h64 helpers into utils.h64 module * pared down CryptHandler * tightened UTs somewhat
* misc stuffEli Collins2011-01-241-0/+8