cohere-toolkit icon indicating copy to clipboard operation
cohere-toolkit copied to clipboard

(WIP) Add baseline Architecture to support auth + User sessions + Basic Auth

Open tianjing-li opened this issue 9 months ago • 0 comments

Beefy first PR to setup plug & play Auth:

  • Adds new auth folder in services

  • Adds BaseAuthenticationStrategy abstract class and BasicAuthentication (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 and make run-tests

tianjing-li avatar May 02 '24 21:05 tianjing-li