AllYourBot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
269 stars 111 forks source link

Refactor credentials and authentication & add Gmail auth #396

Closed krschacht closed 1 month ago

krschacht commented 1 month ago

We already have 3 authentication schemes — password, Google OAuth, and Http Header — and all of these are stored in the user model. However, I want to add API authentication (Http Bearer token) and auth for multiple Google tools (gmail, google calendar, and google tasks).

This PR refactors the authentication code. The main things it does are: