Skip to content

Commit 7d6c013

Browse files
committed
Merge pull request #1825 from greg0ire/security_cookbook_pass
Security cookbook pass
2 parents ba169f0 + faaac70 commit 7d6c013

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

cookbook/security/acl_advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Object Identities
3434
The ACL system is completely decoupled from your domain objects. They don't
3535
even have to be stored in the same database, or on the same server. In order
3636
to achieve this decoupling, in the ACL system your objects are represented
37-
through object identity objects. Everytime, you want to retrieve the ACL for a
37+
through object identity objects. Everytime you want to retrieve the ACL for a
3838
domain object, the ACL system will first create an object identity from your
3939
domain object, and then pass this object identity to the ACL provider for
4040
further processing.

cookbook/security/custom_authentication_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ Configuration
489489
~~~~~~~~~~~~~
490490

491491
You can add custom options under the ``wsse`` key in your security configuration.
492-
For instance, the time allowed before expiring the Created header item,
492+
For instance, the time allowed before expiring the ``Created`` header item,
493493
by default, is 5 minutes. Make this configurable, so different firewalls
494494
can have different timeout lengths.
495495

cookbook/security/force_https.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ How to force HTTPS or HTTP for Different URLs
55
=============================================
66

77
You can force areas of your site to use the ``HTTPS`` protocol in the security
8-
config. This is done through the ``access_control`` rules using the ``requires_channel``
8+
config. This is done through the ``access_control`` rules, using the ``requires_channel``
99
option. For example, if you want to force all URLs starting with ``/secure``
10-
to use ``HTTPS`` then you could use the following config:
10+
to use ``HTTPS`` then you could use the following configuration:
1111

1212
.. configuration-block::
1313

@@ -33,7 +33,7 @@ to use ``HTTPS`` then you could use the following config:
3333
),
3434
),
3535
36-
The login form itself needs to allow anonymous access otherwise users will
36+
The login form itself needs to allow anonymous access, otherwise users will
3737
be unable to authenticate. To force it to use ``HTTPS`` you can still use
3838
``access_control`` rules by using the ``IS_AUTHENTICATED_ANONYMOUSLY``
3939
role:

cookbook/security/form_login.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ Redirecting after Success
105105
You can change where the login form redirects after a successful login using
106106
the various config options. By default the form will redirect to the URL the
107107
user requested (i.e. the URL which triggered the login form being shown).
108-
For example, if the user requested ``http://www.example.com/admin/post/18/edit``
109-
then after he/she will eventually be sent back to ``http://www.example.com/admin/post/18/edit``
110-
after successfully logging in. This is done by storing the requested URL
111-
in the session. If no URL is present in the session (perhaps the user went
108+
For example, if the user requested ``http://www.example.com/admin/post/18/edit``,
109+
then after they successfully logs in, they will eventually be sent back to
110+
``http://www.example.com/admin/post/18/edit``.
111+
This is done by storing the requested URL in the session.
112+
If no URL is present in the session (perhaps the user went
112113
directly to the login page), then the user is redirected to the default page,
113114
which is ``/`` (i.e. the homepage) by default. You can change this behavior
114115
in several ways.
@@ -155,7 +156,7 @@ the following config:
155156
),
156157
));
157158
158-
Now, when no URL is set in the session users will be sent to ``/admin``.
159+
Now, when no URL is set in the session, users will be sent to ``/admin``.
159160

160161
Always Redirect to the Default Page
161162
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -329,7 +330,7 @@ option to another value.
329330
Redirecting on Login Failure
330331
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
331332

332-
In addition to redirect the user after a successful login, you can also set
333+
In addition to redirecting the user after a successful login, you can also set
333334
the URL that the user should be redirected to after a failed login (e.g. an
334335
invalid username or password was submitted). By default, the user is redirected
335336
back to the login form itself. You can set this to a different URL with the

0 commit comments

Comments
 (0)