Reputation: 15489
We are building a mobile app, specifically an android app, and it needs to connect to the server to get data. It is not like twitter, we do not need to expose some kind of public apis. We just need to keep it simple and safe because user will exchange some private data with the server.
My questions is mainly on authentication. Our server will have a user database.
Upvotes: 7
Views: 1045
Reputation: 8685
As suggested by Nate will do it.
and 3. After successful login your API could return unique session ID (as many webapps does) which you can store in your application and submit to your API with every further request. This way as long as client keeps the session ID stored and on server side its not deleted -user doesn't need to login again.
Upvotes: 1
Reputation: 30636
Quick brain dump:
If you like, store the username and load it across application sessions and prompt for a password every "session" of your app.
Upvotes: 1