Skip to content

Commit 3229346

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Security] use lazy anonymous
2 parents 30a4575 + 5700b2e commit 3229346

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

security/form_login.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ First, enable ``form_login`` under your firewall:
2828
2929
firewalls:
3030
main:
31-
anonymous: ~
31+
anonymous: lazy
3232
form_login:
3333
login_path: login
3434
check_path: login

security/guard_authentication.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe
186186
# ...
187187
188188
main:
189-
anonymous: ~
189+
anonymous: lazy
190190
logout: ~
191191
192192
guard:
@@ -213,7 +213,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe
213213
<!-- if you want, disable storing the user in the session
214214
add 'stateless="true"' to the firewall -->
215215
<firewall name="main" pattern="^/">
216-
<anonymous/>
216+
<anonymous lazy="true"/>
217217
<logout/>
218218
219219
<guard>
@@ -236,7 +236,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe
236236
'firewalls' => [
237237
'main' => [
238238
'pattern' => '^/',
239-
'anonymous' => true,
239+
'anonymous' => 'lazy',
240240
'logout' => true,
241241
'guard' => [
242242
'authenticators' => [

security/json_login_setup.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ First, enable the JSON login under your firewall:
1717
1818
firewalls:
1919
main:
20-
anonymous: ~
20+
anonymous: lazy
2121
json_login:
2222
check_path: /login
2323
@@ -33,7 +33,7 @@ First, enable the JSON login under your firewall:
3333
3434
<config>
3535
<firewall name="main">
36-
<anonymous/>
36+
<anonymous lazy="true"/>
3737
<json-login check-path="/login"/>
3838
</firewall>
3939
</config>
@@ -45,7 +45,7 @@ First, enable the JSON login under your firewall:
4545
$container->loadFromExtension('security', [
4646
'firewalls' => [
4747
'main' => [
48-
'anonymous' => null,
48+
'anonymous' => 'lazy',
4949
'json_login' => [
5050
'check_path' => '/login',
5151
],
@@ -163,7 +163,7 @@ The security configuration should be:
163163
164164
firewalls:
165165
main:
166-
anonymous: ~
166+
anonymous: lazy
167167
json_login:
168168
check_path: login
169169
username_path: security.credentials.login
@@ -181,7 +181,7 @@ The security configuration should be:
181181
182182
<config>
183183
<firewall name="main">
184-
<anonymous/>
184+
<anonymous lazy="true"/>
185185
<json-login check-path="login"
186186
username-path="security.credentials.login"
187187
password-path="security.credentials.password"/>
@@ -195,7 +195,7 @@ The security configuration should be:
195195
$container->loadFromExtension('security', [
196196
'firewalls' => [
197197
'main' => [
198-
'anonymous' => null,
198+
'anonymous' => 'lazy',
199199
'json_login' => [
200200
'check_path' => 'login',
201201
'username_path' => 'security.credentials.login',

security/multiple_guard_authenticators.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is how your security configuration can look in action:
2727
# ...
2828
firewalls:
2929
default:
30-
anonymous: ~
30+
anonymous: lazy
3131
guard:
3232
authenticators:
3333
- App\Security\LoginFormAuthenticator
@@ -47,7 +47,7 @@ This is how your security configuration can look in action:
4747
<config>
4848
<!-- ... -->
4949
<firewall name="default">
50-
<anonymous/>
50+
<anonymous lazy="true"/>
5151
<guard entry-point="App\Security\LoginFormAuthenticator">
5252
<authenticator>App\Security\LoginFormAuthenticator</authenticator>
5353
<authenticator>App\Security\FacebookConnectAuthenticator</authenticator>
@@ -66,7 +66,7 @@ This is how your security configuration can look in action:
6666
// ...
6767
'firewalls' => [
6868
'default' => [
69-
'anonymous' => null,
69+
'anonymous' => 'lazy',
7070
'guard' => [
7171
'entry_point' => LoginFormAuthenticator::class,
7272
'authenticators' => [
@@ -103,7 +103,7 @@ the solution is to split the configuration into two separate firewalls:
103103
authenticators:
104104
- App\Security\ApiTokenAuthenticator
105105
default:
106-
anonymous: ~
106+
anonymous: lazy
107107
guard:
108108
authenticators:
109109
- App\Security\LoginFormAuthenticator
@@ -130,7 +130,7 @@ the solution is to split the configuration into two separate firewalls:
130130
</guard>
131131
</firewall>
132132
<firewall name="default">
133-
<anonymous/>
133+
<anonymous lazy="true"/>
134134
<guard>
135135
<authenticator>App\Security\LoginFormAuthenticator</authenticator>
136136
</guard>
@@ -159,7 +159,7 @@ the solution is to split the configuration into two separate firewalls:
159159
],
160160
],
161161
'default' => [
162-
'anonymous' => null,
162+
'anonymous' => 'lazy',
163163
'guard' => [
164164
'authenticators' => [
165165
LoginFormAuthenticator::class,

0 commit comments

Comments
 (0)