What does RESTful Authentication mean and how does it work? I can\'t find a good overview on Google. My only understanding is that you pass the session key (remeberal) in
Here is a truly and completely RESTful authentication solution:
When a client authenticates:
3.1. issue a token which contains the following:
3.2. Encrypt the token with the private key.
3.3. Send the encrypted token back to the user.
When the user accesses any API they must also pass in their auth token.
This is stateless/RESTful authentication.
Note, that if a password hash were included the user would also send the unencrypted password along with the authentication token. The server could verify that the password matched the password that was used to create the authentication token by comparing hashes. A secure connection using something like HTTPS would be necessary. Javascript on the client side could handle getting the user's password and storing it client side, either in memory or in a cookie, possibly encrypted with the server's public key.