-
Notifications
You must be signed in to change notification settings - Fork 5
[FC-0099] feat: add rest api for roles and permissions #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1ffb2f6
feat: add rest api for roles and permissions
BryanttV 45c238c
refactor: enhance permission handling with dynamic scope delegation
BryanttV 3c5f3e7
test: update role user API tests to use new admin user and adjust sco…
BryanttV 43db8ff
docs: fix docstring warnings
BryanttV 8730e35
docs: update json examples in view docstrings
BryanttV ceba0ae
docs: improve docstrings for permission classes by adding attribute d…
BryanttV 8d68f1f
docs: update docstrings in permission classes to use backticks for co…
BryanttV deaee93
refactor: update NAMESPACE attributes to use ClassVar for type hinting
BryanttV 9b1db5b
chore: rename enums.py to data.py
BryanttV c0c05d6
fix: update import path
BryanttV ac5fb4b
refactor: update imports
BryanttV 71adb57
feat: add DynamicScopePermission to RoleListView
BryanttV 6380719
refactor: use temporary permission instead a dynamic permission valid…
BryanttV c8a45ff
chore: bump version to 0.3.0
BryanttV ef60540
refactor: eliminate duplicates while preserving order in serializer l…
BryanttV a18eb72
feat: add generic scope wildcard constant to data module
BryanttV 3a61f48
feat: add decorators for authentication and authorization
BryanttV 65bdb73
feat: implement function to create generic scope from specific scope
BryanttV dfab7ce
feat: add init to rest_api.v1 module
BryanttV ee6992b
refactor: restructure ContentLibraryPermission to use MethodPermissio…
BryanttV 0a2def7
feat: enhance role and scope validation in serializers
BryanttV 5860324
feat: update views to use authz_permissions decorator
BryanttV 8ee18d5
fix: update test cases to use 'scope' parameter instead of 'namespace'
BryanttV 3250b68
chore: remove trailing newline
BryanttV b702f4f
docs: update API documentation
BryanttV 76e2df2
refactor: restructure role test cases to enhance clarity and maintain…
BryanttV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,6 @@ | |
|
|
||
| import os | ||
|
|
||
| __version__ = "0.1.0" | ||
| __version__ = "0.3.0" | ||
|
|
||
| ROOT_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.