Age | Commit message (Expand) | Author |
2024-03-04 | Check for exception args and provide traceback. | Frederick Muriuki Muriithi |
2024-03-04 | Handle generic exceptions gracefully. | Frederick Muriuki Muriithi |
2024-02-25 | Correctly handle URLError....Using the `internal_server_error` function to handle URLError raised
an exception because the `pnf` exception did not have some attributes.
* gn3/errors.py (url_server_error): New function.
(register_error_handlers): Register above function to handle URLError.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| Munyoki Kilyungi |
2024-02-14 | Delete type hints from handle_sparql_errors....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| Munyoki Kilyungi |
2024-02-14 | Minor pep-8 fixes....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| Munyoki Kilyungi |
2024-02-14 | Handle sparql errors at the app level....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| Munyoki Kilyungi |
2024-01-30 | Add the traceback to the exceptions for display. | Frederick Muriuki Muriithi |
2023-10-26 | case-attribute: Fix linting errors. | Frederick Muriuki Muriithi |
2023-10-19 | Handle 404 error(s) at top level. | Frederick Muriuki Muriithi |
2023-06-05 | Handle unhandled SQLite3 errors. | Frederick Muriuki Muriithi |
2023-05-29 | Enable Administrator login on GN3...* gn3/auth/authentication/oauth2/views.py: Remove endpoint
* gn3/auth/authorisation/users/admin/__init__.py: New admin module
* gn3/auth/authorisation/users/admin/ui.py: New admin module
* gn3/auth/authorisation/users/admin/views.py: New admin module
* gn3/auth/views.py: Use new admin module
* gn3/errors.py: Fix linting errors
* gn3/templates/login.html: New html template
* main.py: Fix linting errors
| Frederick Muriuki Muriithi |
2023-05-27 | Document Use of OAuth2 Clients...* docs/authentication_and_authorisation/oauth2_clients.md: New documentation
* gn3/auth/authentication/oauth2/server.py: Raise appropriate error if no
client is found.
* gn3/auth/authentication/oauth2/views.py: Handle exception in the case where
a UI should be presented to the user, rather than presenting the raw JSON
response to the user.
* gn3/errors.py: Handle any authlib OAuth2Error at the application's top-level
* gn3/templates/oauth2/oauth2_error.html: Handle any authlib OAuth2Error at
the application's top-level
| Frederick Muriuki Muriithi |
2023-01-28 | auth: Store error_code in Exception for flexibility...To allow for different error codes for the various exceptions, store the
error_code in the exception objects and retrieve it from there when generating
the response.
| Frederick Muriuki Muriithi |
2023-01-04 | auth: Add `/register-user` endpoint...* gn3/app.py: register top-level error handlers. reorganise oauth2 blueprint.
* gn3/auth/__init__.py: reorganise oaut2 blueprint.
* gn3/auth/authentication/oauth2/views.py: reorganise oauth2 blueprint.
* gn3/auth/authorisation/exceptions.py -> gn3/auth/authorisation/errors.py
* gn3/auth/authorisation/groups.py: rename file/module
* gn3/auth/authorisation/resources.py: rename file/module
* gn3/auth/authorisation/views.py: Add `/register-user` endpoint
* gn3/auth/blueprint.py: reorganise oauth2 blueprint.
* gn3/errors.py: register top-level error handlers.
| Frederick Muriuki Muriithi |