Proposal for an authentication hook

I'd like to be able to include the dashboard as part of a production flask app but want to restrict access to certain users. This solution seemed to be straight-forward and allows the parent app to supply a custom authentication method.