authentication

can somebody explain how the toke based authentication works over HTTP ?
I need its implementation in REST.

I think you can try out the Restful Authentication Plugin in Rails.