I need to implement a login web service in RoR 3.
I applied Devise to a user model and it added some fields.
What I want to do is:
1- Client executes a REST service, sending user and password.
2- Server authenticates that (using encrypted_password field in User table) and returns an access token with an expiration time
3- Client sends that access token in all the services that he executes and if the token is not expired the server sends the response without error.
How can I implement this scheme using Devise. I have already applied Devise to user model.
Thanks!
The answer is: Devise is not intended for this purpose.