mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #32191 -- Added Signer.sign_object()/unsign_object().
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
This commit is contained in:
parent
5bcba16c01
commit
102d92fc09
4 changed files with 126 additions and 32 deletions
|
@ -451,6 +451,15 @@ Security
|
|||
``SECRET_KEY``, and then going on to access ``settings.SECRET_KEY`` will now
|
||||
raise an :exc:`~django.core.exceptions.ImproperlyConfigured` exception.
|
||||
|
||||
* The new ``Signer.sign_object()`` and ``Signer.unsign_object()`` methods allow
|
||||
signing complex data structures. See :ref:`signing-complex-data` for more
|
||||
details.
|
||||
|
||||
Also, :func:`signing.dumps() <django.core.signing.dumps>` and
|
||||
:func:`~django.core.signing.loads` become shortcuts for
|
||||
:meth:`.TimestampSigner.sign_object` and
|
||||
:meth:`~.TimestampSigner.unsign_object`.
|
||||
|
||||
Serialization
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue