From 3752c663fa9ded1801680aa2342947b7676d8ce9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 4 Jan 2023 11:20:30 +0300 Subject: 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. --- gn3/auth/authorisation/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/auth/authorisation/resources.py') diff --git a/gn3/auth/authorisation/resources.py b/gn3/auth/authorisation/resources.py index 0a91930..bc6ba44 100644 --- a/gn3/auth/authorisation/resources.py +++ b/gn3/auth/authorisation/resources.py @@ -6,7 +6,7 @@ from gn3.auth import db from gn3.auth.authentication.users import User from .checks import authorised_p -from .exceptions import AuthorisationError +from .errors import AuthorisationError from .groups import Group, user_group, is_group_leader, authenticated_user_group class MissingGroupError(AuthorisationError): -- cgit v1.2.3