wancat
4ee88fe7ba
feat: add requirements in quest list api
2023-11-14 10:44:52 +08:00
wancat
1e728b413b
fix: not reexport in default
2023-11-14 10:44:52 +08:00
wancat
5df4967a85
feat: delete "deleteSession" method, validate questId and sessionId
2023-11-14 10:44:52 +08:00
wancat
a7422853fa
feat: add /users/me endpoint
2023-11-14 10:44:52 +08:00
Lin, Hung-Shin
4c2f3f5397
feat: put survey and bug report url to backend ( #57 )
...
* feat: put survey and bug report url to backend
* fix: centralize hardcoded url to config
* fix: validate url before redirecting
2023-11-03 21:32:12 +08:00
Lin, Hung-Shin
14043b3f12
feat: specify trust proxies
2023-11-02 12:11:15 +08:00
wancat
d4000eb5a6
feat: add validation before creating session
2023-11-01 22:59:32 +08:00
wancat
f65b72c5b4
feat: add rate limit for authentication
...
* improve error handling in frontend
2023-11-01 22:11:17 +08:00
wancat
203114cd5e
feat: add validation for login
2023-11-01 21:35:25 +08:00
Lin, Hung-Shin
1c9d69a8e0
feat: add validators for username, email, password
...
* not passed yet
2023-11-01 15:02:30 +08:00
wancat
b9a79eb435
feat: add get ip endpoint
...
* rename handler
* change rate limit
2023-10-31 00:27:06 +08:00
wancat
c10b05c401
feat: add global and session rate limit
2023-10-30 23:46:39 +08:00
wancat
5a7c4da628
refactor: add getOrCreateSession to simplify process
2023-10-30 22:43:27 +08:00
wancat
d724f97403
feat: add pending signal to status
2023-10-29 17:42:31 +08:00
wancat
182fcf643f
feat: pick username
...
* put new registered social login user to session data
* ask to choose username
* simplify checkUsername functions
2023-10-13 00:05:59 +08:00
Annie Huang
ad5344c98b
feat: github auth
2023-10-12 16:12:07 +08:00
Lin, Hung-Shin
72b2711367
feat: make social login optional
2023-10-05 13:32:02 +08:00
Lin, Hung-Shin
44b3304046
feat: login to google success
2023-10-04 13:23:16 +08:00
wancat
d939b7eb4d
feat: add loggedIn checks for frontend
2023-09-17 12:29:45 +08:00
wancat
34c277c886
feat: update frontend to use cookie session
...
* use SessionMiddleware in socket.io server
* add back jwtStrategy for commands
2023-09-17 12:14:30 +08:00
wancat
be5cd152a9
change to use session for auth
...
+ replace BearerAuth to cookieAuth in swagger
+ add swagger.yaml to nodemon watch list
2023-09-17 11:27:37 +08:00
Lin, Hung-Shin
49417c405a
feat: add login in frontend
...
* extract icon library from main.js
* extract router from main.js
* failure with error in passport
* add example to swagger
2023-09-13 14:02:28 +08:00
wancat
b55b7aa1ec
feat: add register, checkUsername, update swagger
2023-09-12 23:01:49 +08:00
wancat
0f53696f71
feat: apply auth to container and cli client
2023-09-12 00:12:09 +08:00
wancat
030dc95e24
refactor: put passport to auth folder
2023-09-11 23:38:29 +08:00
wancat
41111f5036
feat: add jwt verification
2023-09-11 23:09:00 +08:00
wancat
bcdd04715d
feat: add password login
2023-09-11 22:59:41 +08:00
wancat
3cea54ce71
feat: add new API for recording executed commands
...
- Add the `jsonwebtoken` dependency to the server's `package.json`
- Add a new file `commandController.js` to the server's API controllers
- Add a new route `/commands` to the server's API routes
- Add a new file `commands.js` to the server's API routes
- Modify the `index.js` file in the server's API routes to import and use the `commands.js` route
- Add a `newCommand` function to the `commandController.js` file
- Add a `Command` model to the `command.js` file in the server's models
- Add the `genSessionJWT` and `verifySessionJWT` functions to the `auth.js` file in the server's utils
- Modify the `attachContainer` function in the `docker.js` file in the server's utils to include a `token` parameter
- Modify the `swagger.yaml` file to include a new route `/commands` for recording executed commands in a session
Signed-off-by: wancat <wancat@wancat.cc >
2023-07-24 16:39:04 +08:00
wancat
3e9e14399a
Directly use folder name as _id in Quest
2023-07-20 16:25:10 +08:00
wancat
247c75ff84
Get quest list and quest details
...
+ Add timestamps to quest
2023-07-20 15:23:39 +08:00
wancat
da4b1b18a4
Create fake auth middleware
...
Work in progress
2023-07-19 16:54:32 +08:00
wancat
04edfdd0dc
Define routes, controllers of sessions
...
Work in progress, debugging
2023-07-19 16:42:09 +08:00