Skip to content

Use log in/out verbs #3115

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
Nov 3, 2013
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 book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ that looks like the following:
* Any URL matching ``/admin/*`` is secured, and only the ``admin`` user
can access it;
* All URLs *not* matching ``/admin/*`` are accessible by all users (and the
user is never prompted to login).
user is never prompted to log in).

Let's look briefly at how security works and how each part of the configuration
comes into play.
Expand Down Expand Up @@ -1635,9 +1635,9 @@ the first provider is always used:
),
));

In this example, if a user tries to login via HTTP authentication, the authentication
In this example, if a user tries to log in via HTTP authentication, the authentication
system will use the ``in_memory`` user provider. But if the user tries to
login via the form login, the ``user_db`` provider will be used (since it's
log in via the form login, the ``user_db`` provider will be used (since it's
the default for the firewall as a whole).

For more information about user provider and firewall configuration, see
Expand Down Expand Up @@ -1869,7 +1869,7 @@ Impersonating a User
--------------------

Sometimes, it's useful to be able to switch from one user to another without
having to logout and login again (for instance when you are debugging or trying
having to log out and log in again (for instance when you are debugging or trying
to understand a bug a user sees that you can't reproduce). This can be easily
done by activating the ``switch_user`` firewall listener:

Expand Down
2 changes: 1 addition & 1 deletion cookbook/testing/http_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can also override it on a per request basis::
When your application is using a ``form_login``, you can simplify your tests
by allowing your test configuration to make use of HTTP authentication. This
way you can use the above to authenticate in tests, but still have your users
login via the normal ``form_login``. The trick is to include the ``http_basic``
log in via the normal ``form_login``. The trick is to include the ``http_basic``
key in your firewall, along with the ``form_login`` key:

.. configuration-block::
Expand Down
2 changes: 1 addition & 1 deletion reference/configuration/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Each part will be explained in the next section.
# submit the login form here
check_path: /login_check

# the user is redirected here when he/she needs to login
# the user is redirected here when he/she needs to log in
login_path: /login

# if true, forward the user to the login form instead of redirecting
Expand Down