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
181181The service ID used for handling a successful logout. The service must implement
182182:class: `Symfony\\ Component\\ Security\\ Http\\ Logout\\ LogoutSuccessHandlerInterface `.
183183
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+
184209.. _reference-security-ldap :
185210
186211LDAP functionality
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ CSRF Protection in Login Forms
121121------------------------------
122122
123123See :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 >`.
125126
126127.. _csrf-protection-in-html-forms :
127128
You can’t perform that action at this time.
0 commit comments