I am developing a web service that can be used by several clients, a website, a mobile phone, a third-party vendor, etc. I consider REST as a possible solution, and I am considering an authentication case.
I try to keep things simple and effective. For recording, I use Node.js.
I understand that sessions are not recommended for scalability reasons.
What are the opinions on passing username and password on every request via https?
For instance:
http: // myservice / users / list? username = authorized & password = mypass
Are there any serious flaws in this approach? Does this open a security hole, crossite scripting?
Is there a better solution for web service in general?
Cliff source
share