title: Python flask session per user and their own object
body: <p>I'm hopeful someone can point me at the proper way to implement this situation.</p>
  
  <p>I'm building a flask app for multiple concurrent users. The app essentially wraps a back-end RESTful service that requires authentication and will allow commands to be sent. The users do not need to login the flask app itself, but they do provide credentials that I use to authenticate an object to the Restful service. As such, each user needs their own unique object for their particular session. For ease of use/laziness I'm also storing some trivial information in a few <code>session['x']</code> variables. </p>
  
  <p>The session information is not unique to each user and it appears the last user to "login" clobbers the previous users' authentication object.</p>
  
  <p>What is the proper way to build this? I could move the <code>session</code> variables into the object, but that still leaves the problem that all users require their own back-end object. Do I need to implement a true flask-login?</p>