-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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`` | ||
|
||
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**: ``/`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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`` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing colon