Indaba auth helper function + middleware.