blakeblackshear.frigate/frigate/api
Josh Hawkins 74ca009b0b
UI viewer role (#16978)
* db migration

* db model

* assign admin role on password reset

* add role to jwt and api responses

* don't restrict api access for admins yet

* use json response

* frontend auth context

* update auth form for profile endpoint

* add access denied page

* add protected routes

* auth hook

* dialogs

* user settings view

* restrict viewer access to settings

* restrict camera functions for viewer role

* add password dialog to account menu

* spacing tweak

* migrator default to admin

* escape quotes in migrator

* ui tweaks

* tweaks

* colors

* colors

* fix merge conflict

* fix icons

* add api layer enforcement

* ui tweaks

* fix error message

* debug

* clean up

* remove print

* guard apis for admin only

* fix tests

* fix review tests

* use correct error responses from api in toasts

* add role to account menu
2025-03-08 10:01:08 -06:00
..
defs UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
__init__.py Update flask and restructure into api folder with apis put into separate folders (#10193) 2024-03-02 22:10:37 +00:00
app.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
auth.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
classification.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
event.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
export.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00
fastapi_app.py Face recognition backend (#14495) 2025-02-08 12:47:01 -06:00
media.py Reuse constants (#16874) 2025-02-28 21:35:09 -07:00
notification.py Frigate HTTP API using FastAPI (#13871) 2024-09-24 07:05:30 -06:00
preview.py Reuse constants (#16874) 2025-02-28 21:35:09 -07:00
review.py UI viewer role (#16978) 2025-03-08 10:01:08 -06:00