I am trying to develop a Restful login system. Using a web service I want to
identify a user based on their user name and password, but I am not sure the
best (Restful) approach.
I would like to avoid the RPC approach of calling an authenticate method,
passing in a user name and password.
The best (Restful) solution I have come up w/ so far is to have the URL
HTTPS://www.example.com/user/{user}. The {user} placeholder would be the MD5
value of the concatenated string of user name + password.
Ex.
User name: MyName
Password: MyPassword
{user} = MD5(MyName+MyPassword)
If the user is found return a XML representation of the user, if not return a
404 error.
Thoughts, comments, suggestions?