Georges-Antoine Assi
6c95a03746
Read-only kiosk mode for viewers
2025-02-06 09:04:41 -05:00
Georges-Antoine Assi
696a1c6122
Merge branch 'master' into rom-hashing-background-task
2025-01-15 21:51:23 -05:00
Michael Manganiello
8c8cd759d9
misc: Add tests
2025-01-09 01:48:14 -03:00
Michael Manganiello
865370ec13
misc: Move auth constants to separate file
...
This simplifies avoiding circular imports when trying to use auth
handlers.
2025-01-08 22:16:31 -03:00
Georges-Antoine Assi
4473b6e498
fix formatting and tests
2024-12-28 10:11:36 -05:00
Georges-Antoine Assi
c9bc15c100
fix auth tests
2024-12-22 14:17:12 -05:00
Georges-Antoine Assi
7bde4aee70
complete the rst of the files
2024-12-20 23:45:25 -05:00
Georges-Antoine Assi
37db255328
refactor oidc handler and fix tests
2024-12-18 10:49:45 -05:00
Georges-Antoine Assi
2d5bc34e9c
add tests for oidc handler
2024-12-12 17:37:30 -05:00
Michael Manganiello
8abbae4c02
misc: Make backend handle URLs with trailing slash
...
According to multiple FastAPI discussions [1], FastAPI only includes a
built-in mechanism to redirect requests including a trailing slash, to
its variation without slash, using a `307` status code.
This can be an issue when certain clients do not send the same headers
on the redirected request.
This change adds a custom FastAPI `APIRouter`, that registers both route
path variations (with and without trailing slash), while only marking
the path without slash for being included in the OpenAPI schema.
[1] https://github.com/fastapi/fastapi/discussions/7298
2024-08-07 00:22:21 -03:00
zurdi
4b81c01140
fixed tests
2024-07-04 22:26:35 +02:00
Michael Manganiello
33ac3ca56d
misc: Apply changes generated by pyupgrade
...
Changes automatically made by
[`pyupgrade`](https://github.com/asottile/pyupgrade ), using the
`--py311-plus` flag, to be compatible with Python 3.11.
2024-06-23 18:17:08 -03:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
880345f20c
ruff-only pre-commit
2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
2756121f06
Merge branch 'master' into python-pkg-drop
2024-05-14 09:22:59 -04:00
Georges-Antoine Assi
2749aaee4a
rename back to old names
2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00