|
|
5d8621feb5
|
remove now broken/unnecessary TARGET route prefix
|
2024-11-10 23:55:00 -06:00 |
|
|
|
f11d5af7cd
|
Merge pull request #15 from Xevion/0.3.0
## Added
- A release checklist to the `CHANGELOG.md` file, as a reminder for procedure.
- An action workflow for invoking `pytest`, with coverage report generation in CI/CD
- backend: Login & Logout routes
- backend: Rate Limiting via custom `RateLimiter` dependency
- backend: `User` model, `Session` model with migration script
- backend: `Session` model constraints for `token` length, `expiry` & `last_used` timestamps
- backend: `SessionDependency` for easy session validation, enforcement & handling per route
- backend: provided `LOG_JSON_FORMAT` and `LOG_LEVEL` environment variable defaults in `run.sh` development script
- backend: Simple `/health` & `/api/migrations` endpoint tests
- backend: `utc_now` helper function
- backend: `pwdlib[argon2]`, `pytest` (`pytest-cov`, `pytest-xdist`), `limits`, `httpx`, `email-validator` pacakges
- frontend: Re-initialized with `vite` template, setup `@tanstack/router` & `shadcn` components.
- frontend: Added Login & Register page, added basic authentication check with redirect
- frontend: Added Zustand state management, basic login & session API functions with `true-myth` types.
- frontend: Added `zustand`, `true-myth`, `@tanstack/router`, `clsx`, `tailwind-merge` packages
## Changed
- Set `black` formatter line length to 120 characters
- backend: migration squashing threshold to 15
- backend: moved top level `app` routes to `router.misc`
## Removed
- frontend: Most old packages from initial `vite` template
- backend: `IPAddress` Model (definition + DB state via migration) & all related code
|
2024-11-10 23:49:49 -06:00 |
|
|
|
0289d4386d
|
Add missing TODO details
|
2024-11-10 23:49:17 -06:00 |
|
|
|
080f910c5f
|
Fix test failing due to missing env ENVIRONMENT variable
|
2024-11-10 23:46:40 -06:00 |
|
|
|
2d99d35c98
|
Updated CHANGELOG for 0.3.0 release
|
2024-11-10 23:43:29 -06:00 |
|
|
|
7e7671c977
|
Final fix for build worthiness
|
2024-11-10 23:41:26 -06:00 |
|
|
|
7e4d233468
|
Minor unnecessary
|
2024-11-10 23:40:09 -06:00 |
|
|
|
f14285b252
|
Fixup hacky login session system, add separate development Caddyfile for CORS cookie issue
|
2024-11-10 23:40:00 -06:00 |
|
|
|
9990bcab02
|
Add /api/login usage
|
2024-11-10 23:07:15 -06:00 |
|
|
|
d9d2e04d94
|
Add /register route, split up authentication page
|
2024-11-10 22:51:54 -06:00 |
|
|
|
f18adf0f41
|
Add zustand, true-myth, primitive authentication state, startup getSession()
|
2024-11-10 20:41:58 -06:00 |
|
|
|
af5e42abe7
|
Log detail CORSMiddleware setup
|
2024-11-10 20:40:58 -06:00 |
|
|
|
00620539d8
|
Re-add root .gitignore, add missing src/lib/utils.ts shadcn helper
|
2024-11-10 19:51:44 -06:00 |
|
|
|
df36b816cc
|
Move python-based .gitignore at root into /backend
interfering with frontend
|
2024-11-10 19:50:55 -06:00 |
|
|
|
c463546e8f
|
Fix delete_cookie() usage, basic /api/session route, remove unused SessionModel dataclass
|
2024-11-10 19:47:57 -06:00 |
|
|
|
fa8434b418
|
Enable zstd encoding, use gzip level 3
|
2024-11-10 19:37:05 -06:00 |
|
|
|
8ad52a9e83
|
Update cSpell words/paths
|
2024-11-10 19:03:52 -06:00 |
|
|
|
3e435581d4
|
Remove outdated CHANGELOG entries, simplify imports, remove Next.js specifier
|
2024-11-10 19:02:30 -06:00 |
|
|
|
fb0193bc76
|
Disable quotes, fix padding & rendering, update CHANGELOG.md
|
2024-11-10 16:06:50 -06:00 |
|
|
|
558c079602
|
Reformat frontend with prettier
|
2024-11-10 15:10:34 -06:00 |
|
|
|
6c39716dd6
|
Add proper SVG icon placeholder
|
2024-11-10 14:59:21 -06:00 |
|
|
|
3d00970003
|
Setup React @tanstack/router, copy shadcn Authentication page
|
2024-11-10 14:34:55 -06:00 |
|
|
|
69c83edd3a
|
completely re-initialize Vite/React configuration to dummy
|
2024-11-10 14:02:47 -06:00 |
|
|
|
01081ee834
|
begin adding shadcn components for frontend
|
2024-11-10 13:50:07 -06:00 |
|
|
|
30bca75a91
|
nit, format, varname nit
|
2024-11-10 13:49:46 -06:00 |
|
|
|
d6d6e35e53
|
Fix Set-Cookie header not propagating into HTTPException, use delete_cookie helper
|
2024-11-10 13:24:55 -06:00 |
|
|
|
1c979ed18a
|
Fix mypy union-attr warning
stupid, I checked it twice and there's no possible way for it to be
None?
|
2024-11-10 13:17:18 -06:00 |
|
|
|
066b3e82ff
|
reformat, organize imports
|
2024-11-10 13:15:28 -06:00 |
|
|
|
16b70bb0de
|
Update CHANGELOG.md
|
2024-11-10 13:08:28 -06:00 |
|
|
|
1ea3bc20db
|
Add additional logs, finish test_auth_logout_expired
|
2024-11-10 13:03:32 -06:00 |
|
|
|
4d6c46a309
|
Fix broken expired_session fixture, add test for future
|
2024-11-10 13:00:37 -06:00 |
|
|
|
d8659c903f
|
Fix test_session not using proper generate_token(), fix session_constraint_expiry
test_session_constraint_expiry was violating multiple constraints
actually, it wasn't properly testing the expiry detail
|
2024-11-10 12:55:53 -06:00 |
|
|
|
20a243ddfc
|
logout route test
|
2024-11-10 12:48:11 -06:00 |
|
|
|
6ffc84fce3
|
Logout route, SessionDependency DI model
|
2024-11-10 12:48:04 -06:00 |
|
|
|
00a3643079
|
Add proper cookie expiry time to Login route
|
2024-11-10 12:13:56 -06:00 |
|
|
|
32645a588a
|
Update CHANGELOG.md
|
2024-11-10 00:38:34 -06:00 |
|
|
|
55eb864f77
|
fixup test_auth_login, add expiry assertions
|
2024-11-10 00:31:52 -06:00 |
|
|
|
cb8dd80f33
|
finish login function, true hash of user fixture
|
2024-11-10 00:16:37 -06:00 |
|
|
|
10919d0333
|
Switch limits to asynchronous storage/strategy
|
2024-11-09 23:27:27 -06:00 |
|
|
|
fd90873f7b
|
Add test_auth_login
|
2024-11-09 23:24:30 -06:00 |
|
|
|
4c2c4bc2ad
|
Add hacky fix for rate-limiter segregation between pytests
|
2024-11-09 23:23:55 -06:00 |
|
|
|
cd900288ff
|
Extend black line-length to 110
|
2024-11-09 23:23:21 -06:00 |
|
|
|
058be9602a
|
Use nproc to specify xdist workers
|
2024-11-09 22:52:25 -06:00 |
|
|
|
fa80bd0649
|
Use xdist auto in pytest workflow
|
2024-11-09 22:47:17 -06:00 |
|
|
|
ee4f3c64d9
|
Switch test_user user fixture to proper hasher
|
2024-11-09 22:44:57 -06:00 |
|
|
|
a4c8336c1a
|
Add limits package, RateLimiter dependency, test_depends, begin /api/login route
|
2024-11-09 22:43:53 -06:00 |
|
|
|
47dc26f842
|
add email-validator package
|
2024-11-09 21:31:13 -06:00 |
|
|
|
15ce80bb66
|
migration: User.password_hash length to 97, Session.token index
off by one hell fml
also why's the index only applying now? what'd I do lol
|
2024-11-09 21:30:46 -06:00 |
|
|
|
126d6b4757
|
move migration squashing suggestion limit to 15
|
2024-11-09 21:30:09 -06:00 |
|
|
|
93a6dd5972
|
workspace diagnostic mode, cSpell ignorePaths
|
2024-11-09 20:49:10 -06:00 |
|