Age | Commit message (Collapse) | Author |
|
session
* Redirect users to the login page when authentication is required.
* Save the current endpoint in the session for post-login redirection.
|
|
requires authentication but are not logged in
|
|
|
|
The token and user details information is handled in the
`gn2.wqflask.oauth2.session`. Other parts of the system should make
use of that.
It also helps avoid some weird "action-at-a-distance" interactions -
this forces the code to request what it needs when it needs it and not
rely on some global variables.
|
|
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/oauth2/checks.py (require_oauth2): New function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Importing "user_logged_in" in the checks module just to export adds a
layer of indirection and makes the code hard to read.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|
|
|
|
|
|
We move all modules under a gn2 directory. This is important for
"correct" packaging and deployment as a Guix service.
|