Add couple sentences to the doc
This commit is contained in:
parent
9f16878a35
commit
f4a9232eef
|
@ -8,17 +8,28 @@
|
||||||
.. currentmodule:: aiohttp_security
|
.. currentmodule:: aiohttp_security
|
||||||
.. highlight:: python
|
.. highlight:: python
|
||||||
|
|
||||||
The library is build on top of two policies: :term:`authentication`
|
|
||||||
and :term:`authorization` and public API.
|
|
||||||
|
|
||||||
API is policy agnostic, all client code should not call policy code
|
First of all, what is *aiohttp_security* about?
|
||||||
directly but use API only.
|
|
||||||
|
It is a set of public API functions and standard for implementation details.
|
||||||
|
|
||||||
|
API is implementation agnostic, all client code should not call policy
|
||||||
|
code (see below) directly but use API only.
|
||||||
|
|
||||||
Via API application can remember/forget user in local session
|
Via API application can remember/forget user in local session
|
||||||
(:func:`remember`/:func:`forget`), retrieve :term:`userid`
|
(:func:`remember`/:func:`forget`), retrieve :term:`userid`
|
||||||
(:func:`authorized_userid`) and check :term:`permission` for
|
(:func:`authorized_userid`) and check :term:`permission` for
|
||||||
remembered user (:func:`permits`).
|
remembered user (:func:`permits`).
|
||||||
|
|
||||||
|
The library internals are built on top of two policies:
|
||||||
|
:term:`authentication` and :term:`authorization`. There are abstract
|
||||||
|
base classes for both concepts as well as several implementations
|
||||||
|
shipped with the library. End user is free to build own implemetations
|
||||||
|
if needed.
|
||||||
|
|
||||||
|
Public API
|
||||||
|
==========
|
||||||
|
|
||||||
|
|
||||||
Authentication
|
Authentication
|
||||||
==============
|
==============
|
||||||
|
|
Loading…
Reference in New Issue