File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,31 @@ success_handler
181
181
The service ID used for handling a successful logout. The service must implement
182
182
:class: `Symfony\\ Component\\ Security\\ Http\\ Logout\\ LogoutSuccessHandlerInterface `.
183
183
184
+ .. _reference-security-logout-csrf :
185
+
186
+ csrf_parameter
187
+ ~~~~~~~~~~~~~~
188
+
189
+ **type **: ``string `` **default **: ``'_csrf_token' ``
190
+
191
+ The name of the parameter that stores the CSRF token value.
192
+
193
+ csrf_token_generator
194
+ ~~~~~~~~~~~~~~~~~~~~
195
+
196
+ **type **: ``string `` **default **: ``null ``
197
+
198
+ The ``id `` of the service used to generate the CSRF tokens. Symfony provides a
199
+ default service whose ID is ``security.csrf.token_manager ``.
200
+
201
+ csrf_token_id
202
+ ~~~~~~~~~~~~~
203
+
204
+ **type **: ``string `` **default **: ``'logout' ``
205
+
206
+ An arbitrary string used to generate the token value (and check its validity
207
+ afterwards).
208
+
184
209
.. _reference-security-ldap :
185
210
186
211
LDAP functionality
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ CSRF Protection in Login Forms
121
121
------------------------------
122
122
123
123
See :doc: `/security/form_login_setup ` for a login form that is protected from
124
- CSRF attacks.
124
+ CSRF attacks. You can also configure the
125
+ :ref: `CSRF protection for the logout action <reference-security-logout-csrf >`.
125
126
126
127
.. _csrf-protection-in-html-forms :
127
128
You can’t perform that action at this time.
0 commit comments