diff options
author | Frederick Muriuki Muriithi | 2023-08-04 12:49:40 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-04 12:49:40 +0300 |
commit | bd99071174bfa80d179dd32673200f51000b86b5 (patch) | |
tree | ab15db002983ddebf10ea6e632b2d0b05b3455d9 /gn_auth/auth | |
parent | 8b7c598407a5fea9a3d78473e72df87606998cd4 (diff) | |
download | gn-auth-bd99071174bfa80d179dd32673200f51000b86b5.tar.gz |
Initialise the application and update some module imports
Diffstat (limited to 'gn_auth/auth')
-rw-r--r-- | gn_auth/auth/authentication/users.py | 4 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/checks.py | 2 | ||||
-rw-r--r-- | gn_auth/auth/authorisation/privileges.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gn_auth/auth/authentication/users.py b/gn_auth/auth/authentication/users.py index 0e72ed2..327820e 100644 --- a/gn_auth/auth/authentication/users.py +++ b/gn_auth/auth/authentication/users.py @@ -5,8 +5,8 @@ from typing import Any, Tuple, NamedTuple from argon2 import PasswordHasher from argon2.exceptions import VerifyMismatchError -from gn3.auth import db -from gn3.auth.authorisation.errors import NotFoundError +from gn_auth.auth import db +from gn_auth.auth.authorisation.errors import NotFoundError class User(NamedTuple): """Class representing a user.""" diff --git a/gn_auth/auth/authorisation/checks.py b/gn_auth/auth/authorisation/checks.py index 1c87c02..02c6810 100644 --- a/gn_auth/auth/authorisation/checks.py +++ b/gn_auth/auth/authorisation/checks.py @@ -4,7 +4,7 @@ from typing import Callable from flask import request, current_app as app -from gn3.auth import db +from gn_auth.auth import db from . import privileges as auth_privs from .errors import InvalidData, AuthorisationError diff --git a/gn_auth/auth/authorisation/privileges.py b/gn_auth/auth/authorisation/privileges.py index dbb4129..1b0f06c 100644 --- a/gn_auth/auth/authorisation/privileges.py +++ b/gn_auth/auth/authorisation/privileges.py @@ -1,8 +1,8 @@ """Handle privileges""" from typing import Any, Iterable, NamedTuple -from gn3.auth import db -from gn3.auth.authentication.users import User +from gn_auth.auth import db +from gn_auth.auth.authentication.users import User class Privilege(NamedTuple): """Class representing a privilege: creates immutable objects.""" |