Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc121fb

Browse files
committed
Fix more occurrences
1 parent43016d5 commitbc121fb

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

‎security/entry_point.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ split the configuration into two separate firewalls:
168168
->formLogin();
169169
170170
$accessControl = $security->accessControl();
171-
$accessControl->path('^/login')->roles(['IS_AUTHENTICATED_ANONYMOUSLY']);
171+
$accessControl->path('^/login')->roles(['PUBLIC_ACCESS']);
172172
$accessControl->path('^/api')->roles(['ROLE_API_USER']);
173173
$accessControl->path('^/')->roles(['ROLE_USER']);
174174
};

‎security/expressions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Additionally, you have access to a number of functions inside the expression:
6464
"fully" - i.e. returns true if the user is "logged in".
6565
``is_anonymous()``
6666
Returns ``true`` if the user is anonymous. That is, the firewall confirms that it
67-
does not know this user's identity. This is different from ``IS_AUTHENTICATED_ANONYMOUSLY``,
67+
does not know this user's identity. This is different from ``PUBLIC_ACCESS``,
6868
which is granted to *all* users, including authenticated ones.
6969
``is_remember_me()``
7070
Similar, but not equal to ``IS_AUTHENTICATED_REMEMBERED``, see below.

‎security/force_https.rst‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ access control:
2424
2525
access_control:
2626
-{ path: '^/secure', roles: ROLE_ADMIN, requires_channel: https }
27-
-{ path: '^/login', roles:IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
27+
-{ path: '^/login', roles:PUBLIC_ACCESS, requires_channel: https }
2828
# catch all other URLs
29-
-{ path: '^/', roles:IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
29+
-{ path: '^/', roles:PUBLIC_ACCESS, requires_channel: https }
3030
3131
..code-block::xml
3232
@@ -43,17 +43,9 @@ access control:
4343
<config>
4444
<!-- ...-->
4545
46-
<rulepath="^/secure"
47-
role="ROLE_ADMIN"
48-
requires-channel="https"/>
49-
<rulepath="^/login"
50-
role="IS_AUTHENTICATED_ANONYMOUSLY"
51-
requires-channel="https"
52-
/>
53-
<rulepath="^/"
54-
role="IS_AUTHENTICATED_ANONYMOUSLY"
55-
requires-channel="https"
56-
/>
46+
<rulepath="^/secure"role="ROLE_ADMIN"requires-channel="https"/>
47+
<rulepath="^/login"role="PUBLIC_ACCESS"requires-channel="https"/>
48+
<rulepath="^/"role="PUBLIC_ACCESS"requires-channel="https"/>
5749
</config>
5850
</srv:container>
5951
@@ -73,13 +65,13 @@ access control:
7365
7466
$security->accessControl()
7567
->path('^/login')
76-
->roles(['IS_AUTHENTICATED_ANONYMOUSLY'])
68+
->roles(['PUBLIC_ACCESS'])
7769
->requiresChannel('https')
7870
;
7971
8072
$security->accessControl()
8173
->path('^/')
82-
->roles(['IS_AUTHENTICATED_ANONYMOUSLY'])
74+
->roles(['PUBLIC_ACCESS'])
8375
->requiresChannel('https')
8476
;
8577
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp