For the REST service, you do not need the Login flag. Typically, in web services, you do not store client state (as the checkbox does), instead, you authenticate each request. Flask-HTTPAuth does this for you.
You would use both options only if you have an application with a web component and a REST API component. In this case, Flask-Login will handle web application routes, and Flask-HTTPAuth will handle API routes.
Disclaimer: I am the author of Flask-HTTPAuth.
source share