Skip to content

Commit

Permalink
minor symfony#5761 [DX] [Security] Renamed key to secret (SongoQ)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xabbuh committed Oct 8, 2015
2 parents 6468cd5 + 18c7f04 commit 5faa84c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cookbook/security/remember_me.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
default:
# ...
remember_me:
key: "%secret%"
secret: "%secret%"
lifetime: 604800 # 1 week in seconds
path: /
# by default, the feature is enabled by checking a
Expand All @@ -48,7 +48,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
<!-- 604800 is 1 week in seconds -->
<remember-me
key="%secret%"
secret="%secret%"
lifetime="604800"
path="/" />
<!-- by default, the feature is enabled by checking a checkbox
Expand All @@ -68,7 +68,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
'default' => array(
// ...
'remember_me' => array(
'key' => '%secret%',
'secret' => '%secret%',
'lifetime' => 604800, // 1 week in seconds
'path' => '/',
// by default, the feature is enabled by checking a
Expand All @@ -82,7 +82,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
The ``remember_me`` firewall defines the following configuration options:

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

Expand Down
4 changes: 2 additions & 2 deletions reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Each part will be explained in the next section.
remember_me:
token_provider: name
key: someS3cretKey
secret: someS3cretKey
name: NameOfTheCookie
lifetime: 3600 # in seconds
path: /foo
Expand Down Expand Up @@ -227,7 +227,7 @@ Each part will be explained in the next section.
domain: ~
handlers: []
anonymous:
key: 4f954a0667e01
secret: 4f954a0667e01
switch_user:
provider: ~
parameter: _switch_user
Expand Down

0 comments on commit 5faa84c

Please sign in to comment.