Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-09-16 | Pass cursor rather than connection to create_resource function | Frederick Muriuki Muriithi | |
In order to decouple the `create_resource` function from the related functions that assign roles to users, this commit changes the code to pass in a cursor rather than a connection. The cursor will be the same cursor passed into the role assignment functions ensuring that the resource creation and role assignment happen in a single transaction. | |||
2024-06-20 | Move deactivated tests to module where they will be re-implemented | Frederick Muriuki Muriithi | |
2024-06-20 | Reorganise test fixtures. Fix tests and issues caught. | Frederick Muriuki Muriithi | |
Reorganise test fixtures to more closely follow the design of the auth system. Fix the broken tests due to refactors and fix all issues caught by the running tests. | |||
2024-06-18 | Update tests for new paradigm | Frederick Muriuki Muriithi | |
* Create a jwt token generator in place of a static token * Update some fixtures * Skip some tests that will require more work to fix | |||
2024-05-13 | Skip "PasswordGrant" tests. | Frederick Muriuki Muriithi | |
2024-04-24 | Move the errors module up one level to break circular dependencies. | Frederick Muriuki Muriithi | |
2023-11-28 | Remove bcrypt as a dependency | Frederick Muriuki Muriithi | |
BCrypt has been superceded by argon, and this commit removes it and all code depending on it from the repository. | |||
2023-10-02 | migrations: New migration - InbredSet Resources | Frederick Muriuki Muriithi | |
Provide a new migration to create tables to handle the InbredSet resources. The migration also sets up the resource category and the related privileges. | |||
2023-09-26 | Add System resource, and group resource(s) to list of user resources | Frederick Muriuki Muriithi | |
* The system resource is public, and should be present for all users. * Each user that is a member of a group, should have their group show up in their list of resources. * Fix the SQL join: add an `ON ...` clause. | |||
2023-09-26 | Update `user_roles`: Return roles for user by resource. | Frederick Muriuki Muriithi | |
2023-09-26 | Move `groups` package under `resources` package | Frederick Muriuki Muriithi | |
With user groups being resources that users can act on (with the recent changes), this commit moves the `groups` module to under the `resources` module. It also renames the `*_resources.py` modules by dropping the `_resources` part since the code is under the `resources` module anyway. | |||
2023-09-26 | Update tests & fixtures to conform to schema changes | Frederick Muriuki Muriithi | |
2023-09-26 | migrations: Create `group_resources` table. | Frederick Muriuki Muriithi | |
2023-09-26 | Resources refactor: Add `resource_ownership` table | Frederick Muriuki Muriithi | |
New table to link resources to groups, where relevant. | |||
2023-08-23 | pylint: Replace `lambda ...` statements with `def ...` | Frederick Muriuki Muriithi | |
2023-08-07 | Fix tests | Frederick Muriuki Muriithi | |
2023-08-07 | Change imports to new unified db module. | Frederick Muriuki Muriithi | |
2023-08-07 | Update module name/path | Frederick Muriuki Muriithi | |
Change from gn3 to gn_auth | |||
2023-08-04 | Copy over files from GN3 repository. | Frederick Muriuki Muriithi | |