What I am doing is rails web service API that let user create traveling log when they access any sites, by using firefox plugin.For this requirement I needed 2 things.
- skip_before_filter :verify_authenticity_token in specific controller (Because I let user create it through API not the form, so I disable this).
- user have to provided username and password every request (e.g. curl -u username:pass -d "..." http://localhost:3000/logs).
What I want to ask are
- can I made it easier by letting my firefox plugin ask for user login then use cookies, so no need to send username password every time with request.
- Does skip_before_filter :verify_authenticity_token is bad thing or necessary thing to do for this ?
Thanks