File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,9 @@ and ``/_wdt``.
290
290
291
291
All *real * URLs are handled by the ``main `` firewall (no ``pattern `` key means
292
292
it matches *all * URLs). But this does *not * mean that every URL requires authentication.
293
- Nope, thanks to the ``anonymous `` key, this firewall *is * accessible anonymously.
293
+ It is useful to let users be authenticated as anonymous. It means any request
294
+ can have an anonymous token to access some resource, while some actions can require
295
+ some privileges.
294
296
295
297
In fact, if you go to the homepage right now, you *will * have access and you'll see
296
298
that you're "authenticated" as ``anon. ``. Don't be fooled by the "Yes" next to
@@ -300,8 +302,16 @@ you are anonymous:
300
302
.. image :: /_images/security/anonymous_wdt.png
301
303
:align: center
302
304
305
+ It will also allow a request to access a form login without being authenticated as a
306
+ unique user (otherwise an infinite redirection loop would happen asking the user to
307
+ authenticate while trying to doing so).
303
308
You'll learn later how to deny access to certain URLs or controllers.
304
309
310
+ .. note ::
311
+
312
+ The "lazy" anonymous mode prevent the session from being started if there is
313
+ no need for authorization (i.e explicit check for a user privilege).
314
+
305
315
.. note ::
306
316
307
317
If you do not see the toolbar, install the :doc: `profiler </profiler >` with:
You can’t perform that action at this time.
0 commit comments