A turn key solution for accounts. This implements oauth2.0 resource-owner-password credential flow with bearer token generation.
# make sure to set correct environment variables per .env first
$ fig up -d postgres
$ fig up -d redis
# install all requirements
$ virtualenv .
$ pip install -r requirements.txt; pip install -r dev_requirements.txt
# run tests
$ python -m unittest discover test '*_test.py'
- signup/login/logout
- forgotten_password,activate,reactivate
- refresh_token
- Connection pool (allows for multiple connections, look into gevent/greenlet support)
- Server side cursors for account based operations (code simplicity, shouldn't be too much of a server bottleneck)
- Gevent/Concurrency model
- Stronger unit testing. Right now, only integration tests of the most basic level exist
- Look into pickling of accounts in redis. Whenever a session exists, the account object is pickled and persisted to redis
- Text message -> Twilio activation
- Use redis c library
- change python-sql library to allow for cleaner queries