Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-09-18 | Refactor: drop __clear_session__ function. | Alexander_Kabui | |
2024-09-18 | Refactor: try to build endpoint with get request. | Alexander_Kabui | |
If BuildError is raised default to "/" | |||
2024-09-18 | fix minor issue for setting redirect url. | Alexander_Kabui | |
2024-09-18 | feat(auth): implement redirect to login page and save current endpoint to ↵ | Alexander_Kabui | |
session * Redirect users to the login page when authentication is required. * Save the current endpoint in the session for post-login redirection. | |||
2024-09-17 | Redirect users to login page if they attempt to access a service that ↵ | Alexander_Kabui | |
requires authentication but are not logged in | |||
2024-07-17 | Remove redundant import. | Frederick Muriuki Muriithi | |
2024-07-17 | Remove token and user detail handling from @app.before_request | Frederick Muriuki Muriithi | |
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. | |||
2024-05-14 | Consistently use the same OAuthSession client | Frederick Muriuki Muriithi | |
2024-03-26 | Delete unused variable. | Munyoki Kilyungi | |
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> | |||
2024-03-26 | Implement "require_oauth2_edit_resource_access" decorator. | Munyoki Kilyungi | |
* gn2/wqflask/oauth2/checks.py (require_oauth2): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> | |||
2024-03-26 | Import user_logged_in from the clients module. | Munyoki Kilyungi | |
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> | |||
2024-03-06 | Use AUTH_SERVER_URL setting from flask.current_app not gn2.utility.tools | Frederick Muriuki Muriithi | |
2024-03-06 | Bug: Break circular import | Frederick Muriuki Muriithi | |
2024-03-05 | Fix missed bug: Don't use `gn2.utility.tools` for configs. | Frederick Muriuki Muriithi | |
2023-12-29 | Namespace all modules under gn2. | Arun Isaac | |
We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. |