fractal-analytics-platform / fractal-vizarr-viewer

Prototype to explore serving/viewing zarr data
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Authorization scheme #25

Closed zonia3000 closed 1 week ago

zonia3000 commented 1 week ago

Checklist before merging

Closes #23

zonia3000 commented 1 week ago

@tcompa I've refactored a bit the code to have configuration loaded in one file and authorization checks performed in another file. I've also added some unit tests for the authorization logic and configured CI to run them.

tcompa commented 1 week ago

Should we rename ALLOWED_USERS into ALLOWED_USERS_FILE or ALLOWED_USER_PATH?

zonia3000 commented 1 week ago

Should we rename ALLOWED_USERS into ALLOWED_USERS_FILE or ALLOWED_USER_PATH?

It is now called ALLOWED_USERS_FILE.