<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/passlib.git/passlib/ext, branch stable</title>
<subtitle>foss.heptapod.net: python-libs/passlib
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/'/>
<entry>
<title>passlib.ext.django: Updated UTs to work with latest django release</title>
<updated>2020-10-08T01:33:47+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-10-08T01:33:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=a4f23dd8fed25cefc93cb257e00b16502a87dbd4'/>
<id>a4f23dd8fed25cefc93cb257e00b16502a87dbd4</id>
<content type='text'>
(should fix long-standing issue 98)

* test_ext_django:

    - Simplified "stock config" setup code.  It now gets it's "sha_rounds" value
      from the django source, so we don't have to manually update it every time
      django changes their default.  This should require less maintenance across
      minor django releases.  (Should fix issue 98, and prevent recurrence)

    - Updated tests to account for quirks in how encoded hashes are handled.
      Specifically: None, "", and invalid hashes all cause subtly different
      behaviors across django versions.  tests pass against django 1.8 - 3.1.

    - split "empty hash" test out from the loop it shared with "null hash" test,
      since the two behave differently.

* tox: expanded envlist to explicitly test a bunch more django versions
  (1.8 - 3.1); and remove some needless "django 2.x + py2" tests

* passlib.apps: reformatted django CryptContext declarations;
  added one for django 2.1 (which dropped "django_bcrypt" it's default list)

* passlib.ext.django:

    - added internal "quirks" helper as central place to track
      minor edge-case changes between django versions.

    - passlib_to_django() helper now falls back to searching hasher classes
      directly, even if patch isn't installed.  this allows it to work
      for django hashers that have been removed from django's default list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(should fix long-standing issue 98)

* test_ext_django:

    - Simplified "stock config" setup code.  It now gets it's "sha_rounds" value
      from the django source, so we don't have to manually update it every time
      django changes their default.  This should require less maintenance across
      minor django releases.  (Should fix issue 98, and prevent recurrence)

    - Updated tests to account for quirks in how encoded hashes are handled.
      Specifically: None, "", and invalid hashes all cause subtly different
      behaviors across django versions.  tests pass against django 1.8 - 3.1.

    - split "empty hash" test out from the loop it shared with "null hash" test,
      since the two behave differently.

* tox: expanded envlist to explicitly test a bunch more django versions
  (1.8 - 3.1); and remove some needless "django 2.x + py2" tests

* passlib.apps: reformatted django CryptContext declarations;
  added one for django 2.1 (which dropped "django_bcrypt" it's default list)

* passlib.ext.django:

    - added internal "quirks" helper as central place to track
      minor edge-case changes between django versions.

    - passlib_to_django() helper now falls back to searching hasher classes
      directly, even if patch isn't installed.  this allows it to work
      for django hashers that have been removed from django's default list.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.ext.django: fix import that was removed in django 3</title>
<updated>2020-03-28T22:34:24+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2020-03-28T22:34:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=ad36df92db4464e0a08e2fc2bc8a1ca9485858b7'/>
<id>ad36df92db4464e0a08e2fc2bc8a1ca9485858b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bugfix: passlib.ext.django: missing compat import for py3</title>
<updated>2016-11-23T04:18:02+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-23T04:18:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=75e20796e380a3fc5ebd3f1e2d20e4f1e7d26a71'/>
<id>75e20796e380a3fc5ebd3f1e2d20e4f1e7d26a71</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.utils: relocated a bunch of properties &amp; decorators to .utils.decor</title>
<updated>2016-11-22T21:49:46+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-22T21:49:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=4f03b94b1c26468400c4839c0932f411e6667fe7'/>
<id>4f03b94b1c26468400c4839c0932f411e6667fe7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.context: formalized how CryptContext stores deprecation info.</title>
<updated>2016-11-22T21:49:13+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-22T21:49:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=659c6afdcb85aa5715e18c4bd2c93f0cdc6de17e'/>
<id>659c6afdcb85aa5715e18c4bd2c93f0cdc6de17e</id>
<content type='text'>
now stored in public Hash.deprecated attr of returned hashers,
instead of monkeypatching Hash.needs_update().
this removes some cruft from a bunch of places.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
now stored in public Hash.deprecated attr of returned hashers,
instead of monkeypatching Hash.needs_update().
this removes some cruft from a bunch of places.
</pre>
</div>
</content>
</entry>
<entry>
<title>passlib.ext.django: large refactor to make things more isolated &amp; testable.</title>
<updated>2016-11-22T21:10:12+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-22T21:10:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=359fdd3cbb88326bbf76aeea6f48bffbcf305f51'/>
<id>359fdd3cbb88326bbf76aeea6f48bffbcf305f51</id>
<content type='text'>
passlib.ext.django
------------------
* everything in .models relocated to the DjangoContextAdapter() class in .utils.
  all that's left in models is a couple of hooks. This consolidates all
  the model state into a single object, making it a lot easier to inspect
  and optimize.

* consolidated a bunch of (undocumented) helper functions into DjangoTranslator()
  class, which now acts as based for DjangoContextAdapter.  Translator instances
  handle converted passlib &lt;-&gt; django hashers, including caching speed-critical bits.

* wrapper class now has guards against wrong type of hasher being passed in

* wrapper class uses .using() instead of deprecated .hash(**kwds) format.

* updated and confirmed passing tests w/ django 1.10.3

passlib.ext.django tests
------------------------
* split test wrapper for django's internal tests (HashersTest) into separate file,
  test_ext_django_source.py, to make it easier to run independantly.

  reworked to use patchAttr(wraps=True) rather than less flexible ContextHook() hack

* tries to clean up HashersTest - adapts to django settings,
  fixed code syncing .iteration settings back to passlib hashers,

* blocked out some django tests that we can't / won't pass,
  documented reasons why.

other
-----
* CryptContext: added temporary hack to access unpatched Hasher.needs_update() method.

* PrefixWrapper: now proxies attr writes if it owns the wrapped hasher.

* test utils: added wrap=True support to patchAttr(), for wrapping arbitrary functions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
passlib.ext.django
------------------
* everything in .models relocated to the DjangoContextAdapter() class in .utils.
  all that's left in models is a couple of hooks. This consolidates all
  the model state into a single object, making it a lot easier to inspect
  and optimize.

* consolidated a bunch of (undocumented) helper functions into DjangoTranslator()
  class, which now acts as based for DjangoContextAdapter.  Translator instances
  handle converted passlib &lt;-&gt; django hashers, including caching speed-critical bits.

* wrapper class now has guards against wrong type of hasher being passed in

* wrapper class uses .using() instead of deprecated .hash(**kwds) format.

* updated and confirmed passing tests w/ django 1.10.3

passlib.ext.django tests
------------------------
* split test wrapper for django's internal tests (HashersTest) into separate file,
  test_ext_django_source.py, to make it easier to run independantly.

  reworked to use patchAttr(wraps=True) rather than less flexible ContextHook() hack

* tries to clean up HashersTest - adapts to django settings,
  fixed code syncing .iteration settings back to passlib hashers,

* blocked out some django tests that we can't / won't pass,
  documented reasons why.

other
-----
* CryptContext: added temporary hack to access unpatched Hasher.needs_update() method.

* PrefixWrapper: now proxies attr writes if it owns the wrapped hasher.

* test utils: added wrap=True support to patchAttr(), for wrapping arbitrary functions.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: updated some docstrings, internal notes</title>
<updated>2016-11-09T22:35:20+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-11-09T22:35:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=e3b0f77f385d5a12d162621b7f57b13f1e2e0355'/>
<id>e3b0f77f385d5a12d162621b7f57b13f1e2e0355</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>renamed PasswordHandler.replace() back to PasswordHandler.using()</title>
<updated>2016-06-15T22:07:59+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-15T22:07:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=ce23c2ab15e70b612cbd902bf0513c0cf6d734e9'/>
<id>ce23c2ab15e70b612cbd902bf0513c0cf6d734e9</id>
<content type='text'>
this basically reversed rev 5c41b0153d4f; after using it a bit more,
decided the name didn't indicate as well what the method was doing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this basically reversed rev 5c41b0153d4f; after using it a bit more,
decided the name didn't indicate as well what the method was doing.
</pre>
</div>
</content>
</entry>
<entry>
<title>renamed handler.using() method to handler.replace(),</title>
<updated>2016-06-13T21:42:28+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-13T21:42:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=fa64950f25704e179acbf27825d75ed5d242d443'/>
<id>fa64950f25704e179acbf27825d75ed5d242d443</id>
<content type='text'>
to match stdlib's convention (for things like str, namedtuple, etc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to match stdlib's convention (for things like str, namedtuple, etc)
</pre>
</div>
</content>
</entry>
<entry>
<title>handler.genconfig() / .genhash() deprecated entirely</title>
<updated>2016-06-13T20:21:07+00:00</updated>
<author>
<name>Eli Collins</name>
<email>elic@assurancetechnologies.com</email>
</author>
<published>2016-06-13T20:21:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/passlib.git/commit/?id=d9ef8678371662f000ce3b3d0d1a038b38e3b8d9'/>
<id>d9ef8678371662f000ce3b3d0d1a038b38e3b8d9</id>
<content type='text'>
after further consideration (while implementing a handler for argon2),
decided that rolling .genconfig() and .genhash() into the .hash() method
(as was done in rev 1f7421b35b75) put too much complexity into the .hash() method.

this commit walks back those portions of rev 1f7421b35b75 -- .genconfig()
and .genhash() are now implemented for each handler directly.

however, going a little further and completely deprecating .genconfig()
and .genhash() support entirely -- decided there's no need for them in
the public api whatsoever.  apps shouldn't need/use them, and the unittests
can use their own workarounds.

* removed "config" keyword from handler.hash() ifc
* removed support for config=None from handler.genhash() -- nothing should use it
  now that handler.genconfig() always returns a string.
* marked .genhash() and .genconfig() as completely deprecated, w/ no alternative

* uts: factored out calls which need config only into a .do_stub_encrypt() helper,
  as replacement for internal uses of .genconfig()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
after further consideration (while implementing a handler for argon2),
decided that rolling .genconfig() and .genhash() into the .hash() method
(as was done in rev 1f7421b35b75) put too much complexity into the .hash() method.

this commit walks back those portions of rev 1f7421b35b75 -- .genconfig()
and .genhash() are now implemented for each handler directly.

however, going a little further and completely deprecating .genconfig()
and .genhash() support entirely -- decided there's no need for them in
the public api whatsoever.  apps shouldn't need/use them, and the unittests
can use their own workarounds.

* removed "config" keyword from handler.hash() ifc
* removed support for config=None from handler.genhash() -- nothing should use it
  now that handler.genconfig() always returns a string.
* marked .genhash() and .genconfig() as completely deprecated, w/ no alternative

* uts: factored out calls which need config only into a .do_stub_encrypt() helper,
  as replacement for internal uses of .genconfig()
</pre>
</div>
</content>
</entry>
</feed>
