Skip to content

Explained the "Remember Me" firewall options #5021

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 4 commits into from
Apr 3, 2015

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to 2.3+
Fixed tickets #4193

This PR started just for adding a note about setting different cookie names for the "Remember Me" feature when using multiple firewalls ... but then I realized that the options of this important firewall weren't explained.

@@ -8,10 +8,7 @@ Once a user is authenticated, their credentials are typically stored in the
session. This means that when the session ends they will be logged out and
have to provide their login details again next time they wish to access the
application. You can allow users to choose to stay logged in for longer than
the session lasts using a cookie with the ``remember_me`` firewall option.
The firewall needs to have a secret key configured, which is used to encrypt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is somewhat important no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting this error. I totally forgot to add the key option to the list. I've added it in 7e45958


``httponly``
(default value: ``true``) If ``true``, the cookie associated with this
feature is sent to the user exclusively through an HTTP non-secure connection.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explanation looks wrong to me. httponly refers to the httponly flag of cookies, which are telling the browser that the cookie should be transmitted for HTTP requests but that it should not be exposed to client-side code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I've just fixed the description of this option. Thanks.

@javiereguiluz
Copy link
Member Author

@xabbuh @wouterj I've included all the suggetions provided by reviewers. Can we consider this PR finished or is it anything else left to do? Thanks.

The ``remember_me`` firewall defines the following configuration options:

``key``
(default value: ``null``) The value used to encrypt the cookie's content.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if it were more readable to move the default value on the same line as the key being described.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice suggestion! Indeed that would be much better. Done here: 63890b1 Thanks!

@xabbuh
Copy link
Member

xabbuh commented Mar 26, 2015

👍

@weaverryan weaverryan merged commit 63890b1 into symfony:2.3 Apr 3, 2015
weaverryan added a commit that referenced this pull request Apr 3, 2015
…iluz)

This PR was merged into the 2.3 branch.

Discussion
----------

Explained the "Remember Me" firewall options

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | 2.3+
| Fixed tickets | #4193

This PR started just for adding a note about setting different cookie names for the "Remember Me" feature when using multiple firewalls ... but then I realized that the options of this important firewall weren't explained.

Commits
-------

63890b1 Put the default value alongside the name of the option to improve readability
aa91c37 Fixed a wrong explanation of the "httponly" option
7e45958 Added the (important) missing "key" option
91172bc Explained the "Remember Me" firewall options
weaverryan added a commit that referenced this pull request Apr 3, 2015
@weaverryan
Copy link
Member

Merged and issue closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants