From 25c6da03e1639895f0051e8be6502762beefde0b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 29 May 2023 11:21:48 +0300 Subject: 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 --- gn3/errors.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gn3/errors.py') diff --git a/gn3/errors.py b/gn3/errors.py index 7ae07f4..606b3d3 100644 --- a/gn3/errors.py +++ b/gn3/errors.py @@ -13,6 +13,7 @@ def handle_authorisation_error(exc: AuthorisationError): }), exc.error_code def handle_oauth2_errors(exc: OAuth2Error): + """Handle OAuth2Error if not handled anywhere else.""" current_app.logger.error(exc) return jsonify({ "error": exc.error, -- cgit v1.2.3