Flask authorization and authentication helpers.