Skip to content

Commit b526f61

Browse files
authored
small changes request token (#5270)
1 parent be76684 commit b526f61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Documentation/ApiOverview/Authentication/CSRFlikeRequestTokenHandling.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ main scope is to ensure a user actually has visited a page, before submitting
1515
data to the webserver.
1616

1717
This token can only be used for HTTP methods `POST`, `PUT` or `PATCH`, but
18-
for instance not for `GET` request.
18+
for instance not for a `GET` request.
1919

2020
The :php:`\TYPO3\CMS\Core\Middleware\RequestTokenMiddleware` resolves
2121
request tokens and nonce values from a request and enhances responses with
2222
a nonce value in case the underlying application issues one. Both items are
2323
serialized as a `JSON Web Token (JWT)`_ hash signed with `HS256`. Request tokens
2424
use the provided nonce value during signing.
2525

26-
Session cookie names involved for providing the nonce value:
26+
Session cookie names involved for providing the `nonce`_ value depending on the request:
2727

28-
* `typo3nonce_[hash]` in case request served with plain HTTP
29-
* `__Secure-typo3nonce_[hash]` in case request served with secured HTTPS
28+
* `typo3nonce_[hash]` - plain HTTP
29+
* `__Secure-typo3nonce_[hash]` - secured HTTPS
3030

3131
Submitting request token value to application:
3232

@@ -66,8 +66,8 @@ The sequence looks like the following:
6666
:php:`\TYPO3\CMS\Core\Context\SecurityAspect`.
6767

6868
.. versionchanged:: 13.3
69-
Use the :ref:`generic-view-factory` to create a view, previously
70-
used :php:`\TYPO3\CMS\Fluid\View\StandaloneView` was deprecated with
69+
:ref:`generic-view-factory` to create a view. The previously
70+
used :php:`\TYPO3\CMS\Fluid\View\StandaloneView` is deprecated with
7171
TYPO3 v13.3 and removed with TYPO3 v14.0.
7272

7373
.. literalinclude:: _CSRFlikeRequestTokenHandling/_MyController.php

0 commit comments

Comments
 (0)