-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add BaseModel for JWT and `HanaToken` (to use for auth and refresh) Update TokenConfig model to reflect expected database schema Refactor AccessRoles values to allow for more in-between values Add methods to read/dump PermissionsConfig to JWT-compatible role strings * Update TokenConfig to better accept alternate named parameters with comment Update unit test to account for token config change * Update TokenConfig to handle JWT standard field names Add test coverage for TokenConfig * Update comment in TokenConfig * Mark `TokenConfig` as deprecated Refactor `HanaToken` to include params previously used in `TokenConfig` * Update deprecation warning to use builtin decorator * Refactors `UserDbRequest` into seprate schemas for CRUD operations Maintains compat. with users service by determining model based on the requested `operation` * Add optional authentication to `UpdateUserRequest` model to allow for admin-authenticated changes Finish test coverage for MQ user database CRUD models * Update tests to handle refactored model params Update raised exception to use exact keys * Refactor `ReadUserRequest` to require some form of authentication for any read operation Define "READ_USERS" role and annotate special roles * Fix syntax error in commented AccessRoles and update docstring to include comments * Refactor `read` requests to accept a token for auth Validate passed token as an access token, rather than refresh * Update docstring for AccessRoles special roles Annotate config values in PermissionsConfig to describe application of permissions Add a `users` permission to define access to the users service independent of the rest of the backend (matches `node` and `llm` behavior) * Refactor to remove `RW_USERS` role since the `USER` and `ADMIN` roles already define read and write access, respectively * Refactor imports to resolve circular import errors Add import tests to ensure all imports resolve * Remove unused import Refactor tests to resolve issue with reloading base classes * Troubleshoot module reloading in unit tests * Add check to ensure `HanaToken` is defined for `User` object with unit test Issue noted in https://github.com/NeonGeckoCom/neon-users-service/actions/runs/11923783196/job/33236966442 * Add explicit import of `HanaToken` https://github.com/NeonGeckoCom/neon-users-service/actions/runs/11923783196/job/33237158775
- Loading branch information
1 parent
9c1c1cf
commit db62bab
Showing
8 changed files
with
278 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.