Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
allow customized Frapi_Authorization to be injected into the Main controller #121
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.)