diff options
| author | Steve Piercy <web@stevepiercy.com> | 2020-01-13 01:49:57 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2020-01-13 01:49:57 -0800 |
| commit | 05f9ff6e2d1d89af68a70ab52894f6575377f78a (patch) | |
| tree | d3c28a93e421719743d8f54ed1a3cc0e732261e0 /docs/tutorials/wiki2/authentication.rst | |
| parent | 24c9a330c0941e0e63be4e0809c72d972a2fb7fa (diff) | |
| download | pyramid-05f9ff6e2d1d89af68a70ab52894f6575377f78a.tar.gz pyramid-05f9ff6e2d1d89af68a70ab52894f6575377f78a.tar.bz2 pyramid-05f9ff6e2d1d89af68a70ab52894f6575377f78a.zip | |
Align line numbers to code
- @mmerickel can you check the wording to ensure it is still correct for the code?
Diffstat (limited to 'docs/tutorials/wiki2/authentication.rst')
| -rw-r--r-- | docs/tutorials/wiki2/authentication.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authentication.rst b/docs/tutorials/wiki2/authentication.rst index c799d79bf..5e0077b20 100644 --- a/docs/tutorials/wiki2/authentication.rst +++ b/docs/tutorials/wiki2/authentication.rst @@ -43,8 +43,8 @@ Update ``tutorial/security.py`` with the following content: Here we've defined: -* A new security policy named ``MySecurityPolicy``, which is implementing most of the :class:`pyramid.interfaces.ISecurityPolicy` interface by tracking a :term:`identity` using a signed cookie implemented by :class:`pyramid.authentication.AuthTktCookieHelper` (lines 7-29). -* The ``request.user`` computed property is registered for use throughout our application as the authenticated ``tutorial.models.User`` object for the logged-in user (line 38-39). +* A new security policy named ``MySecurityPolicy``, which is implementing most of the :class:`pyramid.interfaces.ISecurityPolicy` interface by tracking a :term:`identity` using a signed cookie implemented by :class:`pyramid.authentication.AuthTktCookieHelper` (lines 8-34). +* The ``request.user`` computed property is registered for use throughout our application as the authenticated ``tutorial.models.User`` object for the logged-in user (line 42-44). Our new :term:`security policy` defines how our application will remember, forget, and identify users. It also handles authorization, which we'll cover in the next chapter (if you're wondering why we didn't implement the ``permits`` method yet). |
