Commit graph

22 commits

Author SHA1 Message Date
Maieul BOYER
a67d29af3c feat(oauth2): commented a bit of stuff 2025-10-28 13:47:20 +01:00
Maieul BOYER
66537e2ccb feat(oauth2/user): Implementation of the whole oauth2 pipeline
Auth: user can now login with any oauth2 provider the config list
      account will be created on demands if not already created.
      any oauth2 account is unique (can't link an account to any other
      auth method)
2025-10-28 13:47:20 +01:00
Maieul BOYER
7557a7aa76 feat(oauth2): provider.toml config file with template 2025-10-28 13:47:20 +01:00
Maieul BOYER
2074f8d8f1 fix(shared/auth/icon): Fixed lots of small things
Icons: Fixed docker-compose to force JWT_SECRET for now
Auth: Fixed Guest Login to actually work
Auth: Added `Login as Guest` in the login_demo page
Shared: Fixed db/user + uuid modules
2025-10-11 14:29:00 +02:00
Maieul BOYER
1cbd778131 feat(auth/user): Finished User Rework to handle Guest
- Split userinfo APIs to their own service (`user`)
- Added user service to nginx and docker-compose
- Cleaned up package.json across the project to remove useless
  depedencies
- Added word list for Guest username generation (source in file itself)
- Reworked internal of `user` DB to not have a difference between "raw"
  id and normal ID (UUID)
2025-10-11 14:29:00 +02:00
Maieul BOYER
812959b16f feat(auth): fixed JWT using wrong data and SIGTERM handler
- JWT now uses the correct information to determine the user
  (id instead of name)
- A SIGTERM handler has been made, such that docker doesn't use SIGKILL
2025-10-11 14:29:00 +02:00
Raphael
bb43622684
test 2025-10-03 13:31:54 +02:00
Raphael
c1b0833229
test 2025-10-03 13:31:35 +02:00
Maieul BOYER
404735fe22 fixes(eslint): fixing everything that eslint complained about 2025-09-29 11:50:53 +02:00
Raphael
d5e7f57ef2
style(auth/vite): removing the comment on the same line
- Moving the comment below
2025-09-28 22:28:08 +02:00
Raphael
38013b77d3
style(auth): auto-correction of the linter
- using pnpm eslint --fix ./src
2025-09-28 19:03:59 +02:00
Maieul BOYER
c4b1bb2f65 fix(auth): small issues with login process 2025-09-08 14:52:47 +02:00
Maix0
4f8ebc7dd9 feat(otp): use dedicated method to get user's otp secret
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-01 15:47:07 +02:00
Maix0
238dead666 Update src/auth/src/routes/whoami.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-01 15:47:07 +02:00
Maieul BOYER
a7c753f38b feat(auth): Added 2FA/OTP manage endpoints
- CodeWise: Changed everything to use undefined when not present
- CodeWise: checks for nonpresent value using `isNullish`
- enableOtp: enable Otp, return topt url. Does nothing when
  already enabled
- disableOtp: disable 2FA Totp for the user
- statusOtp: get the 2FA status for the user. return the Totp Url if
  enabled
- loginDemo: split into two files
- loginDemo: supports for 2FA
- loginDemo: better response box
2025-09-01 15:47:07 +02:00
Raphaël
29a5d38530 fix(routes/OTP): timeout condition check
- The condition was inverted for the expiration of the token will be unvalidated
2025-09-01 15:47:07 +02:00
Raphaël
61adf0f742 fix(routes/login): remove debug message from login.ts
- The debug message was not anymore useful (and not the better way to speak to my console)
2025-09-01 15:47:07 +02:00
Maieul BOYER
964fe908a6 feat(auth): Base auth with plugins
- Add fastify to protect routes plugins (requireAuth: true)
- Simple Demo to show regular password auth (no 2FA/OTP nor remote auth)
- Currently supports: login, logout, signin
- OTP workflow should work, not tested
- Fixed convention for docker volumes (now all placed in /volumes/<name>)
2025-09-01 15:47:07 +02:00
Maieul BOYER
ddde700494 feat(auth): working plugin 2025-09-01 15:47:07 +02:00
Maieul BOYER
a16852c1b9 feat(death): I want to die... 2025-09-01 15:47:07 +02:00
Maieul BOYER
baf9dc54c6 wip(auth): WIP 2025-09-01 15:47:07 +02:00
Maieul BOYER
c5dbfcad6e feat(auth): initialize service
- Make rule `sql`: convert .dbml file to .sql file
- Removed tests: not used...
- Added dbml_sqlite to flake.nix
2025-09-01 15:47:07 +02:00