Skip to content

[DX] [Security] Renamed key to secret #5761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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