-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update meta endpoints. BREAKING CHANGE: `meta/versions` is now gone, replaced with `meta/version` (server version) and `meta/libraries` (some core libraries). * Use importlib.metadata as we're on python 3.10+. * Add token-is-valid endpoint and update tests. * Add user info endpoint. This endpoint shows some meta information about the user in question. Normal users can see their own information, superusers, admins, group admins, and network admins can add `?username=foo` to see information about that user. Information provided: - username - django status for the user (superuser, admin, active) - mreg status for the user (superuser, admin, group admin, network admin, hostpolicy admin, dns wildcard admin, and underscore admin). - group memberships - mreg permissions granted based on the groups one is a member of. * Remove debugging. * Fix distinction between requestor and target... * Allow looking up oneself as a param. * Add tests for news metas.
- Loading branch information
Showing
3 changed files
with
167 additions
and
11 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