Reputation: 479
I'm developing an android app where it will replicate my web application. My web application has login/authentication/sessions, which is implemented using spring security frame work. Now the problem is I need to handle each and every job in android application to be done using RESTful web service securely but I'm unable to find the correct way of implementing the web service. I'm using this tutorial, which is actually not secure. He has given some tips on how to do it securely using OAUTH but it isn't clear for me.
My questions are;
Upvotes: 3
Views: 7732
Reputation: 3127
Maybe easiest solution for you in this case will be open webview and load you web app login. User will login and you will check response and maybe return some token.
Upvotes: 0
Reputation: 5535
Normally for mobile clients with RESTful Web Services, I have not used sessions. Usually each method is authenticated independently, often by using https and passing the username password in as either parameters in the URL or using Basic Authentication. See for example this quesiont and answers:
Calling Restful Web Service with Android
Upvotes: 2