-
Notifications
You must be signed in to change notification settings - Fork 14
feat: add authz dependency injections #1539
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
Draft
shree-iyengar-dls
wants to merge
26
commits into
tiled-token-validation
Choose a base branch
from
add_depedency_injection
base: tiled-token-validation
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4495151
Add opa dependency function to create OpaUserClient
tpoliaw f2f02de
test opa dependency function
tpoliaw 82ff44b
Add can_submit_task auth check method and config
tpoliaw 84efe6e
feat: add authz dependency injection
shree-iyengar-dls 06a8bda
feat: add auth check dependency injections to task endpoints
shree-iyengar-dls 7536275
feat: create new access task permission fns and add as dependencies
shree-iyengar-dls f066cbf
refactor: update rest api version
shree-iyengar-dls a56893d
comment out dependency addition in set_state
shree-iyengar-dls 4518825
refactor: add admin check and check to set state function
060ec2e
Update dependency names
tpoliaw 29e2a5a
Add missing admin check
tpoliaw 3757ac5
Handle missing opa and fix tests
tpoliaw b4c61a7
Remove old admin method
tpoliaw 38fc638
Use starlette statuses directly
tpoliaw b14a256
test task submission authz
tpoliaw 072c36c
Use _config instead of _conf
tpoliaw f193a5b
Re-use instrument session regex
tpoliaw a372c17
remove task access check
tpoliaw cfc22d3
Add match to raises check
tpoliaw 340ef65
Add exception detail
tpoliaw 8ad021f
Let admin see all tasks
tpoliaw 6aa6121
Start of api authz tests
tpoliaw 824b4e8
Make get_tasks async to access authz check
tpoliaw e6a6917
Parametrise filter test to check with and without admin
tpoliaw 0518099
Add test for deleting tasks
tpoliaw fa02ed5
Add test for submit without permission
tpoliaw 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
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
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.
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.