yesodweb/yesod — Issue #207: Let authenticate functions take a Manager
Author: snoyberg
Created: 2012-01-07 16:27:01+00:00
State: open

OpenID, Facebook, RPXnow, etc, all use http-conduit to perform logins. They each currently create a new Manager for each request, meaning they provide no way to share existing connections. We want to make three changes:

* Change authenticate to always take a `Manager`. We likely need to change the functions to live in `ResourceT` as well.
* Make corresponding updates to yesod-auth.
* Change the scaffolding to store a `Manager` in the foundation type. Although this isn't strictly necessary for the tiny scaffolding, it's likely a good idea anyway.