aboutsummaryrefslogtreecommitdiff
path: root/main.py
AgeCommit message (Expand)Author
2023-10-10Remove authentication from GN3...Authentication should be handled by the auth server (gn-auth) and thus, this commit removes code handling user authentication from the GN3 system. Frederick Muriuki Muriithi
2023-06-08bug: Function expects pathlib.Path not strFrederick Muriuki Muriithi
2023-05-30Enable registering sys-admin on CLI...To ease registration of system-admin user, provide a CLI script to register the user and mark them as sys admin in one go. Frederick Muriuki Muriithi
2023-05-29Enable 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-26Document CLI Utility Commands...Document some CLI utility commands useful for development and for supporting the operation of the GN3 app. Frederick Muriuki Muriithi
2023-05-23auth: Enable user masquerade...Enable users with the appropriate privileges to masquerade as other users by providing an endpoint that provides a new token for the "masqueradee" Frederick Muriuki Muriithi
2023-05-09auth: Implement "Authorization Code Flow"...Implement the "Authorization Code Flow" for the authentication of users. * gn3/auth/authentication/oauth2/grants/authorisation_code_grant.py: query and save the authorisation code. * gn3/auth/authentication/oauth2/models/authorization_code.py: Implement the `AuthorisationCode` model * gn3/auth/authentication/oauth2/models/oauth2client.py: Fix typo * gn3/auth/authentication/oauth2/server.py: Register the `AuthorisationCodeGrant` grant with the server. * gn3/auth/authentication/oauth2/views.py: Implement `/authorise` endpoint * gn3/templates/base.html: New HTML Templates of authorisation UI * gn3/templates/common-macros.html: New HTML Templates of authorisation UI * gn3/templates/oauth2/authorise-user.html: New HTML Templates of authorisation UI * main.py: Allow both "code" and "token" response types. auth/implement-authorization-code-flowFrederick Muriuki Muriithi
2023-03-10auth: data-migration: Fix minor bugsFrederick Muriuki Muriithi
2023-03-08auth: users: Use the same basic functions for password hashing...To avoid repeating the same thing in multiple places, leading to errors and breakages, reuse the same basic functions for password hashing. Frederick Muriuki Muriithi
2023-03-08Replace Bcrypt with Argon2 for better security....Bcrypt is now somewhat vulnerable to offline cracking, so we move our password hashing over to Argon2. Frederick Muriuki Muriithi
2023-03-06auth: resources: Enable assigning a user roles on resourcesFrederick Muriuki Muriithi
2023-02-22auth: List data not linked to any group.Frederick Muriuki Muriithi
2023-02-10Fix linting errors.Frederick Muriuki Muriithi
2023-02-10auth: CLI: Provide a way to set an existing user as a system admin...Provide a way to set a user as a system administrator via CLI. This method was chosen rather that using the WebUI since most users will not have access to the CLI. It also means that assigning system administration privileges will not be an accident, since one has to actually run the command manually on the CLI. Frederick Muriuki Muriithi
2023-01-21auth: Fix saving of scope values. Add scope items.Frederick Muriuki Muriithi
2023-01-20auth: Add development utils/tools...To avoid having to manually rebuild some default data for exploration of concepts while developing the system, add a way to build up the test users and oauth2 clients to use for testing. Frederick Muriuki Muriithi
2022-11-15pylint: Fix linting errors.Frederick Muriuki Muriithi
2022-11-08CLI: Provide `apply-migrations` command for flask...* main.py: Provide the `apply-migrations` CLI command to run the migrations against the auth database. The command can be invoked with: $ flask apply-migrations Frederick Muriuki Muriithi
2021-08-07Add gunicorn support for productionPjotr Prins
2021-02-16Register blueprints in gn3/app.py...* main.py: Move blueprint registrations to ... * gn3/app.py (create_app): ... here BonfaceKilz
2021-02-16Register gemma blueprintsBonfaceKilz
2021-02-12Add skeleton flask entry-pointBonfaceKilz