requests / requests-oauthlib

OAuthlib support for Python-Requests!
https://requests-oauthlib.readthedocs.org/
ISC License
1.72k stars 424 forks source link

Persist sessions/cookies with database #395

Closed danjenson closed 4 years ago

danjenson commented 4 years ago

I've built a flask app that runs on Google App Engine and uses requests-oauthlib. I understand that requests-oauthlib uses requests.Session for session persistence. How can I back session persistence with a database? I'm worried that if my app gets a lot of traffic, it will autoscale and sessions will get mixed up between instances. I'd like to database-persist session information so it is multiprocess-safe.