As simple as that.
As simple as that.
I'm not really convinced that's not a good idea for a TLS-only service (compared to the complexities that tokens/cookies introduce). One reason why there was a move away from Basic Auth was ofcourse that it is crazy to send plain-text login/password pairs over a plain-text transport (HTTP sans S).
And there's never been any working, cross-platform effort to improve things (AFAIK).
There's some work on Kerberos that's interesting, but again, many of these efforts have been simply co-opted by the fact that everyone used cookies (and had problems, and started encrypting them etc), and then moved from HTTP to HTTPS.
When you have HTTPS, there's not that many reasons to not just have "SECRET PASSWORD" in the URL (granted that'd not be REST either, but BASIC AUTH does the same thing, just in a header).
If you have to do a challenge-response auth every 5 requests, or so, to get a session, then it’s not really rest.
Client certificates might actually make the most sense in this case.
None of this requires state on the server.
I need to store a state somewhere at least. That’s not really stateless.
A good read: https://www.safaribooksonline.com/library/view/restful-web-s...