frapi/frapi — pull request #123 by clayhinson (2012-04-08 05:26:43+00:00)
Title: allow customized Frapi_Authorization to be injected into the Main controller

[resubmit without conflicting commits]

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.)