Skip to content

Commit

Permalink
Work on doc
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 17, 2015
1 parent ab81d73 commit 01ebd42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions docs/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,25 @@
Authenticated user has no access rights, the system even has no
knowledge is there the user still registered in DB.

If :term:`request` has an :term:`identity` it means the user has
some ID that should be checked by :term:`authorization` policy.
If :class:`~aiohttp.web.Request` has an :term:`identity` it
means the user has some ID that should be checked by
:term:`authorization` policy.

authorization

Checking actual permissions for identified user along with
getting :term:`userid`.

identity

Session-wide :class:`str` for identifying user.

Stored in local storage (client-side cookie or server-side storage).

Use :coroutine:`~aiohttp_session.remember` for saving *identity* (sign in)
and :coroutine:`~aiohttp_session.forget` for dropping it (sign out).
Use :meth:`~aiohttp_session.remember` for saving *identity* (sign in)
and :meth:`~aiohttp_session.forget` for dropping it (sign out).

*identity* is used for getting :term:`userid` and :term:`permissions`.
*identity* is used for getting :term:`userid` and :term:`permission`.

permission

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Contents:

usage
reference
examples
example
glossary


Expand Down

0 comments on commit 01ebd42

Please sign in to comment.