Skip to content

Documented the security options related to redirections #7450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,37 @@ request to the ``check_path`` URL.
Redirecting after Login
~~~~~~~~~~~~~~~~~~~~~~~

* ``always_use_default_target_path`` (type: ``boolean``, default: ``false``)
* ``default_target_path`` (type: ``string``, default: ``/``)
* ``target_path_parameter`` (type: ``string``, default: ``_target_path``)
* ``use_referer`` (type: ``boolean``, default: ``false``)
always_use_default_target_path
..............................

**type**: ``boolean`` **default** ``false``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing colon


If ``true``, users are always redirected to the default target path regardless
of the previous URL that was stored in the session.

default_target_path
....................

**type**: ``string``, **default**: ``/``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not have commas anywhere else.


The page users are redirect to when there is no previous page stored in the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] are redirected to [...]

session (for example when the users access directly to the login page).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...] for example, when users browse the login form directly [...]


target_path_parameter
.....................

**type**: ``string``, **default**: ``_target_path``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


When using a login form, if you include an HTML element to set the target path,
this option lets you change the name of the HTML element itself.

use_referer
...........

**type**: ``boolean``, **default**: ``false``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comma should be removed


If ``true``, the user is redirected to the value stored in the ``HTTP_REFERER``
header when no previous URL was stored in the session.

.. _reference-security-pbkdf2:

Expand Down