<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/csrf_tests/test_context_processor.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2022-02-07T19:37:05Z</updated>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #32800 -- Changed CsrfViewMiddleware not to mask the CSRF secret.</title>
<updated>2021-11-29T09:47:39Z</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2021-08-17T13:13:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5d80843ebc5376d00f98bf2a6aadbada4c29365c'/>
<id>urn:sha1:5d80843ebc5376d00f98bf2a6aadbada4c29365c</id>
<content type='text'>
This also adds CSRF_COOKIE_MASKED transitional setting helpful in
migrating multiple instance of the same project to Django 4.1+.

Thanks Florian Apolloner and Shai Berger for reviews.

Co-Authored-By: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #32800 -- Avoided use of _does_token_match() in some CSRF tests.</title>
<updated>2021-11-16T10:21:30Z</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2021-08-17T20:43:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3f0025c18a08535ed39a64c24174f7e2d75b7b9e'/>
<id>urn:sha1:3f0025c18a08535ed39a64c24174f7e2d75b7b9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #32800 -- Renamed _compare_masked_tokens() to _does_token_match().</title>
<updated>2021-08-03T05:10:31Z</updated>
<author>
<name>Chris Jerdonek</name>
<email>chris.jerdonek@gmail.com</email>
</author>
<published>2021-06-30T16:17:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7132341255e725e15339a9cea0b494f6d576c688'/>
<id>urn:sha1:7132341255e725e15339a9cea0b494f6d576c688</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #31291 -- Renamed salt to mask for CSRF tokens.</title>
<updated>2020-02-25T13:16:19Z</updated>
<author>
<name>Ram Rachum</name>
<email>ram@rachum.com</email>
</author>
<published>2020-02-25T13:16:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5b09354954348f1a56df32b2d7dbe074a23a4532'/>
<id>urn:sha1:5b09354954348f1a56df32b2d7dbe074a23a4532</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unneeded force_text calls in the test suite</title>
<updated>2017-01-24T17:45:54Z</updated>
<author>
<name>Claude Paroz</name>
<email>claude@2xlibre.net</email>
</author>
<published>2017-01-24T11:22:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=2366100872ec17dde06abc63c1ad74dcf746b134'/>
<id>urn:sha1:2366100872ec17dde06abc63c1ad74dcf746b134</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #20869 -- made CSRF tokens change every request by salt-encrypting them</title>
<updated>2016-05-19T02:02:19Z</updated>
<author>
<name>Shai Berger</name>
<email>shai@platonix.com</email>
</author>
<published>2015-11-07T16:35:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5112e65ef2df1dbb95ff83026b6a962fb2688661'/>
<id>urn:sha1:5112e65ef2df1dbb95ff83026b6a962fb2688661</id>
<content type='text'>
Note that the cookie is not changed every request, just the token retrieved
by the `get_token()` method (used also by the `{% csrf_token %}` tag).

While at it, made token validation strict: Where, before, any length was
accepted and non-ASCII chars were ignored, we now treat anything other than
`[A-Za-z0-9]{64}` as invalid (except for 32-char tokens, which, for
backwards-compatibility, are accepted and replaced by 64-char ones).

Thanks Trac user patrys for reporting, github user adambrenecki
for initial patch, Tim Graham for help, and Curtis Maloney,
Collin Anderson, Florian Apolloner, Markus Holtermann &amp; Jon Dufresne
for reviews.
</content>
</entry>
<entry>
<title>Fixed #24836 -- Made force_text() resolve lazy objects.</title>
<updated>2015-05-27T13:48:53Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2015-05-26T20:46:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=70be31bba7f8658f17235e33862319780c3dfad1'/>
<id>urn:sha1:70be31bba7f8658f17235e33862319780c3dfad1</id>
<content type='text'>
</content>
</entry>
</feed>
