aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/oauth2/checks.py
AgeCommit message (Expand)Author
2024-07-17Remove redundant import.Frederick Muriuki Muriithi
2024-07-17Remove token and user detail handling from @app.before_request...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. Frederick Muriuki Muriithi
2024-05-14Consistently use the same OAuthSession clientFrederick Muriuki Muriithi
2024-03-26Delete unused variable....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Implement "require_oauth2_edit_resource_access" decorator....* gn2/wqflask/oauth2/checks.py (require_oauth2): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Import user_logged_in from the clients module....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> Munyoki Kilyungi
2024-03-06Use AUTH_SERVER_URL setting from flask.current_app not gn2.utility.toolsFrederick Muriuki Muriithi
2024-03-06Bug: Break circular importFrederick Muriuki Muriithi
2024-03-05Fix missed bug: Don't use `gn2.utility.tools` for configs.Frederick Muriuki Muriithi
2023-12-29Namespace all modules under gn2....We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. Arun Isaac