cohere-toolkit
cohere-toolkit copied to clipboard
(WIP) Add baseline Architecture to support auth + User sessions + Basic Auth
Beefy first PR to setup plug & play Auth:
-
Adds new
auth
folder in services -
Adds
BaseAuthenticationStrategy
abstract class andBasicAuthentication
(email+password) to start with. The base class should be inherited from all Auth strategies, next steps should include adding OAuth strategies. -
Adds
auth
routes, can retrieve session, logout, login, auth (to implement). The /login method should be generic and run for all auth strategies -
Adds
SessionMiddleware
to track current user session -
Adds extensive unit testing
-
[x] Add tests and docs: Please include testing and documentation for your changes
-
[x] Lint and test: Run
make lint
andmake run-tests