Skip to content

Commit 5faa84c

Browse files
committed
minor #5761 [DX] [Security] Renamed key to secret (SongoQ)
This PR was merged into the 2.8 branch. Discussion ---------- [DX] [Security] Renamed key to secret | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes symfony/symfony#15141 | Applies to | 2.8+ | Fixed tickets | n/a Commits ------- 18c7f04 Remember me, Renamed key to secret
2 parents 6468cd5 + 18c7f04 commit 5faa84c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cookbook/security/remember_me.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
2222
default:
2323
# ...
2424
remember_me:
25-
key: "%secret%"
25+
secret: "%secret%"
2626
lifetime: 604800 # 1 week in seconds
2727
path: /
2828
# by default, the feature is enabled by checking a
@@ -48,7 +48,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
4848
4949
<!-- 604800 is 1 week in seconds -->
5050
<remember-me
51-
key="%secret%"
51+
secret="%secret%"
5252
lifetime="604800"
5353
path="/" />
5454
<!-- by default, the feature is enabled by checking a checkbox
@@ -68,7 +68,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
6868
'default' => array(
6969
// ...
7070
'remember_me' => array(
71-
'key' => '%secret%',
71+
'secret' => '%secret%',
7272
'lifetime' => 604800, // 1 week in seconds
7373
'path' => '/',
7474
// by default, the feature is enabled by checking a
@@ -82,7 +82,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
8282
8383
The ``remember_me`` firewall defines the following configuration options:
8484

85-
``key`` (**required**)
85+
``secret`` (**required**)
8686
The value used to encrypt the cookie's content. It's common to use the
8787
``secret`` value defined in the ``app/config/parameters.yml`` file.
8888

reference/configuration/security.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Each part will be explained in the next section.
180180
181181
remember_me:
182182
token_provider: name
183-
key: someS3cretKey
183+
secret: someS3cretKey
184184
name: NameOfTheCookie
185185
lifetime: 3600 # in seconds
186186
path: /foo
@@ -227,7 +227,7 @@ Each part will be explained in the next section.
227227
domain: ~
228228
handlers: []
229229
anonymous:
230-
key: 4f954a0667e01
230+
secret: 4f954a0667e01
231231
switch_user:
232232
provider: ~
233233
parameter: _switch_user

0 commit comments

Comments
 (0)