browsertrix/frontend
Ilya Kreymer 9a2787f9c4
User refactor + remove fastapi_users dependency + update fastapi (#1290)
Fixes #1050 

Major refactor of the user/auth system to remove fastapi_users
dependency. Refactors users.py to be standalone
and adds new auth.py module for handling auth. UserManager now works
similar to other ops classes.

The auth should be fully backwards compatible with fastapi_users auth,
including accepting previous JWT tokens w/o having to re-login. The User
data model in mongodb is also unchanged.

Additional fixes:
- allows updating fastapi to latest
- add webhook docs to openapi (follow up to #1041)

API changes:
- Removing the`GET, PATCH, DELETE /users/<id>` endpoints, which were not
in used before, as users are scoped to orgs. For deletion, probably
auto-delete when user is removed from last org (to be implemented).
- Rename `/users/me-with-orgs` is renamed to just `/users/me/`
- New `PUT /users/me/change-password` endpoint with password required to update password, fixes  #1269, supersedes #1272 

Frontend changes:
- Fixes from #1272 to support new change password endpoint.

---------
Co-authored-by: Tessa Walsh <tessa@bitarchivist.net>
Co-authored-by: sua yoo <sua@suayoo.com>
2023-10-18 10:49:23 -07:00
..
.husky
.vscode
assets
config supports overriding the replayweb.page version without having to be r… (#1122) 2023-09-05 20:10:21 -04:00
scripts
src User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
tests
xliff terminology tweaks in frontend: (part of #922) (#1062) 2023-08-09 15:38:58 -07:00
.dockerignore
.editorconfig
.gitignore
.prettierignore
00-browsertrix-nginx-init.sh fix(build): use /usr/bin/env bash instead of /bin/bash (#1020) 2023-07-28 21:50:04 -07:00
Dockerfile supports overriding the replayweb.page version without having to be r… (#1122) 2023-09-05 20:10:21 -04:00
frontend.conf.template Passthrough X-Forwarded-Proto header in frontend nginx (#1226) 2023-09-28 10:58:57 -07:00
index.d.ts
lit-localize.json
minio.conf
package.json Use org slug in place of UUIDs in app URLs (#1277) 2023-10-18 09:28:30 -07:00
playwright.config.ts
postcss.config.js
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
sample.env.local
tailwind.config.js build: fix webpack dev server recompiling without changes 2023-09-19 12:15:58 -07:00
tsconfig.json
web-test-runner.config.mjs
webpack.config.js supports overriding the replayweb.page version without having to be r… (#1122) 2023-09-05 20:10:21 -04:00
webpack.dev.js build: disable webpack polling for hot reload 2023-09-18 15:14:34 -07:00
webpack.prod.js
yarn.lock Use org slug in place of UUIDs in app URLs (#1277) 2023-10-18 09:28:30 -07:00