aiohttp-security/docs/glossary.rst

66 lines
1.6 KiB
ReStructuredText
Raw Permalink Normal View History

2015-07-08 17:30:24 +00:00
.. _aiohttp-security-glossary:
==========
Glossary
==========
.. if you add new entries, keep the alphabetical sorting!
.. glossary::
2015-09-06 05:12:18 +00:00
aiohttp
2015-07-08 17:30:24 +00:00
2015-09-06 05:12:18 +00:00
:term:`asyncio` based library for making web servers.
asyncio
The library for writing single-threaded concurrent code using
coroutines, multiplexing I/O access over sockets and other
resources, running network clients and servers, and other
related primitives.
Reference implementation of :pep:`3156`
https://pypi.python.org/pypi/asyncio/
2015-11-02 20:28:10 +00:00
2015-11-08 02:47:19 +00:00
authentication
Actions related to retrieving, storing and removing user's
:term:`identity`.
Authenticated user has no access rights, the system even has no
knowledge is there the user still registered in DB.
2015-11-17 19:17:45 +00:00
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`.
2015-11-08 02:47:19 +00:00
2015-11-02 20:28:10 +00:00
identity
Session-wide :class:`str` for identifying user.
Stored in local storage (client-side cookie or server-side storage).
2015-11-17 19:17:45 +00:00
Use :meth:`~aiohttp_session.remember` for saving *identity* (sign in)
and :meth:`~aiohttp_session.forget` for dropping it (sign out).
2015-11-02 20:28:10 +00:00
2015-11-17 19:17:45 +00:00
*identity* is used for getting :term:`userid` and :term:`permission`.
2015-11-02 20:28:10 +00:00
2015-11-08 02:56:34 +00:00
permission
Permission required for access to resource.
Permissions are just strings, and they have no required
composition: you can name permissions whatever you like.
2015-11-02 20:28:10 +00:00
userid
User's ID, most likely his *login* or *email*