I am developing a solution for my company with the following architecture: RESTfull Web Service , built on django, which provides a level of authentication and persistence for both the web client application and the mobile client application (which is written using phonegap ).
We read a lot around the Internet about client-side authentication methods, providing support for both web and mobile applications, and from what we found (which is very bad), we are thinking about creating an API key for each user registered in the mobile client application, and saving this API key in the local storage of the device; and in the web client using traditional cookie session management, including the CSRF token in POST, PUT, and DELETE requests.
We would like to know what are the best authentication methods and is this approach good enough? Are there other methods for authentication? which one is the best?
We are trying to discontinue using oAuth , as this adds complexity to our development.
We already checked this question , but its answers did not help us very much, since we use phonegap and have the indicated architecture.
Thanks for your help!
source share