Skip to content

Conversation

@max-zilla
Copy link
Contributor

Add FileAuth dependency we can use if file_id is available in a route, and implements it on several file routes.

@tcnichol tcnichol self-requested a review March 7, 2023 20:10
@tcnichol
Copy link
Contributor

tcnichol commented Mar 7, 2023

I checked and this one looks pretty good, I noticed that the backend lint was failing so I just pushed a commit to fix that.

@max-zilla max-zilla marked this pull request as ready for review March 8, 2023 19:50
@max-zilla max-zilla merged commit eb83eba into main Mar 8, 2023
@max-zilla max-zilla deleted the implement-file-auth-endpoints branch March 8, 2023 21:26
longshuicy pushed a commit that referenced this pull request Mar 13, 2023
* add FileAuthorization dependency

* formatting

* adjust permissions to uploader for a couple routes

---------

Co-authored-by: toddn <[email protected]>
max-zilla added a commit that referenced this pull request Mar 15, 2023
* tests

* skeleton code

* codegen

* connect to get role endpoint in redux

* add role chip

* add to file; but need to investigate why backend file doesn't work

* implement some basic role

* break action menu into owner, editor, upload

* add 403 page

* still falls to not found

* add metadata auth framework. (#359)

* adding wrapper for metadata authorization

* formatting

* using pyobjectid not str

* merge,adding for metadata

* formatting

* small fixes based on max's comments

* formatting

* adding restart unless stopped for this container (#341)

* Implement FileAuthorization dependency (#385)

* add FileAuthorization dependency

* formatting

* adjust permissions to uploader for a couple routes

---------

Co-authored-by: toddn <[email protected]>

* codgen

* write auth wrapper pattern

* fix file role

* temp fix for 403

* add protection on file menu

* add protection on file

* remove extraneous role filter on user roles

---------

Co-authored-by: Todd Nicholson <[email protected]>
Co-authored-by: Max Burnette <[email protected]>
Co-authored-by: toddn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants