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

Use allowed-users list #11

Closed tcompa closed 3 months ago

tcompa commented 3 months ago

Rather than checking that a user is a superuser, let's check whether their username is listed in some ALLOWED_USERS configuration file.

zonia3000 commented 3 months ago

The list of allowed users is read from a file whose path is specified using the ALLOWED_USERS environment variable.

The file contains a list of user email addresses separated by newlines:

Example:

admin@fractal.xy
foo@example.com