Pascal Lim
c386d0b1a5
sort and fix backend imports
2024-08-30 22:26:22 +02:00
Timothy J. Baek
58cf1be20c
feat: config.json db migration
2024-08-25 16:52:36 +02:00
USIGLOBAL\daniel_tsai
89ebbed67b
fix: DeprecationWarning for datetime.utcnow() by using datetime.now(UTC)
2024-08-22 15:12:40 +08:00
Michael Poluektov
12c21fac22
refac: apps/openai/main.py and utils
2024-08-03 14:24:26 +01:00
Jonathan Rohde
8f939cf55b
feat(sqlalchemy): some fixes
2024-06-27 07:48:08 +02:00
Jonathan Rohde
bee835cb65
feat(sqlalchemy): remove session reference from router
2024-06-27 07:48:08 +02:00
Jonathan Rohde
df09d0830a
feat(sqlalchemy): Replace peewee with sqlalchemy
2024-06-27 07:48:08 +02:00
Timothy J. Baek
ab270c1682
fix
2024-06-19 14:49:35 -07:00
Timothy J. Baek
b36c525ebc
enh: cookie auth
2024-06-19 14:38:09 -07:00
Timothy J. Baek
1fce466253
refac: folder rename web -> webui
2024-05-26 01:15:48 -07:00
Timothy J. Baek
9094536d37
feat: user last active
2024-04-27 19:38:51 -04:00
Timothy J. Baek
0aa4d305c7
chore: print statement removed
2024-04-02 10:07:44 -07:00
Timothy J. Baek
1066096b33
fix
2024-04-02 10:06:58 -07:00
Timothy J. Baek
398b2076cd
refac
2024-04-02 10:05:53 -07:00
Timothy J. Baek
b35cc36e19
chore: formatting
2024-04-02 09:42:45 -07:00
liu.vaayne
81e928030f
backend support api key
2024-03-26 18:22:17 +08:00
Timothy J. Baek
366679ff7c
fix: 'dict' object issue
2024-02-24 22:10:43 -08:00
Timothy J. Baek
b5bd07a06a
feat: secure litellm api
2024-02-23 22:44:56 -08:00
Timothy J. Baek
3af8d16e6a
fix: admin issue
2024-02-10 17:54:33 -08:00
Tim Farrell
08e8e922fd
Endpoint role-checking was redundantly applied but FastAPI provides a nice abstraction mechanic...so I applied it. There should be no logical changes in this code; only simpler, cleaner ways for doing the same thing.
2024-02-08 18:05:01 -06:00
Tim Farrell
4fceb404bd
Call jwt.decode
with the expected algorithms
2024-02-02 09:01:57 -06:00
Tim Farrell
e15dbdc46a
Pass the instance we're using.
2024-02-02 09:01:34 -06:00
Tim Farrell
8c37edd027
Even though "User.email" is enforced as unique at signup, it is not a unique field in the database. Let's use "User.id" instead. This also makes it more difficult to do a session stealing attack.
2024-02-02 09:01:06 -06:00
Tim Farrell
2c1dacb9b6
We should verify signatures to make the whole session secret meaningful.
2024-02-02 09:00:31 -06:00
Tim Farrell
d67f3d982b
Start by renaming variables to something more generic. This will give us a bit more flexibility as we look to other session management mechanisms.
2024-02-02 08:58:13 -06:00
Timothy J. Baek
5e6d946f83
chore: disable passlib log
2024-01-05 12:22:27 -08:00
ThatOneCalculator
07cc7f15d5
chore: 🚨 lint and format
2024-01-03 14:33:57 -08:00
Anuraag Jain
77323d9b25
refac: remove the verify_token and use get-current user for auth+user
2024-01-01 10:55:50 +02:00
Anuraag Jain
bdd153d8f5
refac: use dependencies to verify token
...
- feat: added new util to get the current user when needed. Middleware was adding authentication logic to all the routes. let's revisit if we can move the non-auth endpoints to a separate route.
- refac: update the routes to use new helpers for verification and retrieving user
- chore: added black for local formatting of py code
2023-12-30 12:53:33 +02:00
Anuraag Jain
a01b112f7f
feat(auth): add auth middleware
...
- refactored chat routes to use request.user instead of doing authentication in every route
2023-12-28 22:15:54 +02:00
Timothy J. Baek
83ff1d77ea
feat: set first user to admin by default
2023-11-19 00:41:29 -08:00
Timothy J. Baek
8547b7807d
feat: basic RBAC support
2023-11-18 21:41:43 -08:00