Secured RESTful API that can be used by Web App (angular), iOS and Android
I have to lay out a plan to develop a RESTful API (Python/Flask) that could be used by our future web app (Angularjs) and mobile apps (iOS/Android). I have been researching for three days and have come across several scenarios: Using HTTPS is one way on top of the methods below to keep it safer. But https is slower, which could mean we need faster and more expensive servers. Using Basic-Http-Auth and sending username/password in plain (yet https) over the wire for every request to the API. Using Digest-Auth, which is a hash of the password and the tracking would be automatic This would work