Commit graph

399 commits

Author SHA1 Message Date
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
Maix0
a6ce4630f5 feat(jwtPlugin): correctly check for multiple registration
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-01 15:47:07 +02:00
Maix0
fa3966729f feat(database): remove use of any
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-01 15:47:07 +02:00
Maieul BOYER
85cfea3cbf feat(database): removed debug logs 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
c545499c73 feat(otp): yeah used packet............. 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
33e893ec58 feat(wip): ... 2025-09-01 15:47:07 +02:00
Maieul BOYER
70d72f4419 feat(database): split stuff into multiple files 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
Maieul BOYER
a2b896916e feat(infra): Added way to run custom commands for different services
- new `EXTRA_FILES` docker build args to specify directory to be copied at
  /extra
- run `${SERVICE}/entrypoint.sh` as docker entry point
- added src/empty folder to so if EXTRA_FILES isn't set => use empty
  folder (since no conditional COPY)
2025-08-04 14:33:34 +02:00
Maieul BOYER
1ebe0868f5 feat(infra): added pnpm-lock.yaml to .gitignore 2025-08-03 16:08:20 +02:00
Maieul BOYER
f62f21ee18 feat(infra): went back to alpine and removed package.json merging
- Actually using pnpm workspace...
- Use alpine on both runner and builder container
- runner using lockfile generated by builder container
2025-08-03 16:04:24 +02:00
Maieul BOYER
c633200e86 feat(infra): Removed alpine/jq dependencies
Changed from using `jq` to a nodejs script to merge package.json files
2025-08-03 15:10:13 +02:00
Maieul BOYER
c3d29662ba feat(infra): removed debug commands from Dockerfile 2025-08-03 14:44:19 +02:00
Maieul BOYER
5f9fd5629c feat(infra): reworked Dockerfile
- changed from npm to pnpm in Dockerfile => improved install time
    Fixed errors from change in .ts files.
2025-08-03 14:40:48 +02:00
Raphaël
704ce37909
Create docker-image.yml 2025-08-03 11:50:34 +02:00
Maieul BOYER
573af0bc4b feat(infra): singular dockerfile with vite bundling
Using Vite as a bundler to allow easier builds, with shared library

Moved to a single dockerfile that takes an argument to specify which
service to use

moved some file around to faciliate bundling with vite

cried a lot
2025-07-30 21:30:04 +02:00
Maieul BOYER
bdc4616106 feat(cleanup): removed built application 2025-07-30 14:07:44 +02:00
Maieul BOYER
157b06ea4b feat(infra): reworked everything so that a single docker builds all + made sure everything works 2025-07-29 14:15:25 +02:00
Maieul BOYER
68f8d87477 update(wip): I want to docker commit myself 2025-07-29 14:15:25 +02:00
maix0
f9671ea198 getting merged anyway lol 2025-07-29 14:15:25 +02:00
maix0
3f5cb97501 update test 2025-07-29 14:15:25 +02:00
maix0
0b3ea4b406 update: started to work on the database side of things 2025-07-29 14:15:25 +02:00
Maieul BOYER
eab450626a update: started to work on the image resizing 2025-07-29 14:15:25 +02:00
maix0
47c019a8df wip 2025-07-29 14:15:25 +02:00
maix0
37403d304a feat(shared): reworked shared library
Shared library is now access using `@shared/module`
2025-07-29 14:14:44 +02:00
maix0
1bc33ab912 wip 2025-07-29 14:12:28 +02:00
maix0
aa96d79e47 update: icon store 2025-07-29 14:12:28 +02:00
maix0
b1243d7346 Merge remote-tracking branch 'origin/master' 2025-07-19 15:33:35 +02:00
Raphael
caf4e74bc0 style(git/ignore): adding the pdf extansion to ignore 2025-07-19 14:56:09 +02:00
Raphael
d7c73f8464 style(nix/lock): removing the lock nix file 2025-07-09 19:25:45 +02:00
Raphael
003bec7243 style(git/module): adding tab removing .lock and node_modules 2025-07-09 19:25:14 +02:00
Maix0
06944c564b
Rename README to README.MD 2025-07-09 17:22:01 +02:00
Maix0
023ba935b7
Rename modules.md to README 2025-07-09 17:21:45 +02:00
Raphael
64b45851b3 style(git/module): adding tab with all modules 2025-07-09 17:20:38 +02:00
Raphael
4a5dd29ffa style(git/ignore): adding the nix stuff to the ignore 2025-07-09 17:20:12 +02:00
Maieul BOYER
985c636360
yes 2025-06-13 23:38:13 +02:00
maix0
2f991d9743 update: made some chages 2025-06-13 15:44:38 +02:00
maix0
fb48a0fa04 update: scaffolding for nginx 2025-06-12 18:35:04 +02:00
maix0
d89dd4f315 update: first commit 2025-06-11 18:46:56 +02:00
maix0
7e0abb2b0a 2025-06-11 18:03:55 +02:00