diff options
author | Frederick Muriuki Muriithi | 2023-05-29 11:21:48 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-05-29 11:21:48 +0300 |
commit | 25c6da03e1639895f0051e8be6502762beefde0b (patch) | |
tree | 3355d9538c550753b6b5f45f37446c0f1e584011 /gn3/auth/views.py | |
parent | a448329fac4ca3c3c42dd180e3bc823024bbd25c (diff) | |
download | genenetwork3-25c6da03e1639895f0051e8be6502762beefde0b.tar.gz |
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
Diffstat (limited to 'gn3/auth/views.py')
-rw-r--r-- | gn3/auth/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/auth/views.py b/gn3/auth/views.py index 4e01cc9..56eace7 100644 --- a/gn3/auth/views.py +++ b/gn3/auth/views.py @@ -5,6 +5,7 @@ from .authentication.oauth2.views import auth from .authorisation.data.views import data from .authorisation.users.views import users +from .authorisation.users.admin import admin from .authorisation.roles.views import roles from .authorisation.groups.views import groups from .authorisation.resources.views import resources @@ -15,5 +16,6 @@ oauth2.register_blueprint(auth, url_prefix="/") oauth2.register_blueprint(data, url_prefix="/data") oauth2.register_blueprint(users, url_prefix="/user") oauth2.register_blueprint(roles, url_prefix="/role") +oauth2.register_blueprint(admin, url_prefix="/admin") oauth2.register_blueprint(groups, url_prefix="/group") oauth2.register_blueprint(resources, url_prefix="/resource") |