Skip to content

Commit b5fc192

Browse files
MarkusHtimgraham
authored andcommitted
Fixed #27352 -- Doc'd social media fingerprinting consideration with login's redirect_authenticated_user.
1 parent 2327fad commit b5fc192

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/spelling_wordlist

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ fallback
253253
fallbacks
254254
faq
255255
FastCGI
256+
favicon
256257
fieldset
257258
fieldsets
258259
filename

docs/topics/auth/default.txt

+9
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,15 @@ implementation details see :ref:`using-the-views`.
10061006
authenticated users accessing the login page will be redirected as if
10071007
they had just successfully logged in. Defaults to ``False``.
10081008

1009+
.. warning::
1010+
1011+
If you enable ``redirect_authenticated_user``, other websites will be
1012+
able to determine if their visitors are authenticated on your site by
1013+
requesting redirect URLs to image files on your website. To avoid
1014+
this "`social media fingerprinting
1015+
<https://robinlinus.github.io/socialmedia-leak/>`_" information
1016+
leakage, host all images and your favicon on a separate domain.
1017+
10091018
* ``success_url_allowed_hosts``: A :class:`set` of hosts, in addition to
10101019
:meth:`request.get_host() <django.http.HttpRequest.get_host>`, that are
10111020
safe for redirecting after login. Defaults to an empty :class:`set`.

0 commit comments

Comments
 (0)