frapi/frapi — pull request #121 by clayhinson (2012-04-04 03:52:22+00:00)
Title: allow customized Frapi_Authorization to be injected into the Main controller

This allows customization of a Frapi_Authorization object before startup, so that the authentication handler can be replaced or extended.

In my case, this was necessary due to long-running uploads that extend beyond the lifetime of a standard request nonce. I created a custom extension of Frapi_Authorization / Frapi_Authorization_Partner that can override nonce lifetimes by action, and needed a way to inject it.

If anyone has issues with this, or a better approach let's discuss. (The ability to customize nonce lifetime might be worth adding as a feature itself, as anytime you're handling non-trivial uploads with FRAPI this is going to crop up.)