@@ -293,11 +293,10 @@ accidentally block Symfony's dev tools - which live under URLs like ``/_profiler
293
293
and ``/_wdt ``.
294
294
295
295
All *real * URLs are handled by the ``main `` firewall (no ``pattern `` key means
296
- it matches *all * URLs).
297
- A firewall can have many modes of authentication, in other words many ways to
298
- ask the question "Who are you?".
299
- It is convenient to first let users answer "I'm no one in particular, just a
300
- visitor as any other", this mode is ``anonymous ``.
296
+ it matches *all * URLs). A firewall can have many modes of authentication,
297
+ in other words many ways to ask the question "Who are you?". Often, the
298
+ user is unknown (i.e. not logged in) when they first visit your website. The
299
+ ``anonymous `` mode, if enabled, is used for these requests.
301
300
302
301
In fact, if you go to the homepage right now, you *will * have access and you'll
303
302
see that you're "authenticated" as ``anon. ``. The firewall verified that it
@@ -306,21 +305,21 @@ does not know your identity, and so, you are anonymous:
306
305
.. image :: /_images/security/anonymous_wdt.png
307
306
:align: center
308
307
309
- It means any request can have an anonymous token to access some resource, while
310
- some actions (i.e. some pages or buttons) can still require some privileges.
311
- A request can then access a form login without being authenticated as a unique
312
- user (otherwise an infinite redirection loop would happen asking the user to
313
- authenticate while trying to doing so).
308
+ It means any request can have an anonymous token to access some resource,
309
+ while some actions (i.e. some pages or buttons) can still require specific
310
+ privileges. A user can then access a form login without being authenticated
311
+ as a unique user (otherwise an infinite redirection loop would happen
312
+ asking the user to authenticate while trying to doing so).
314
313
315
314
You'll learn later how to deny access to certain URLs, controllers, or part of
316
315
templates.
317
316
318
- .. note ::
317
+ .. tip ::
319
318
320
- The ``lazy `` anonymous mode prevent the session from being started if there
321
- is no need for authorization (i.e. explicit check for a user privilege).
322
- This is important to keep requests cacheable (see
323
- :ref: ` HTTP cache < http-cache > `).
319
+ The ``lazy `` anonymous mode prevents the session from being started if
320
+ there is no need for authorization (i.e. explicit check for a user
321
+ privilege). This is important to keep requests cacheable (see
322
+ :doc: ` /http_cache `).
324
323
325
324
.. note ::
326
325
0 commit comments