> Don't use Basic Auth
Why not? If it's an API meant to be consumed by a server I don't see what the problem is.
Why not? If it's an API meant to be consumed by a server I don't see what the problem is.
It's fragile to request smuggling attacks too, because the password is not entangled with the request, just next to it.
We have lots of mechanisms that do better than both of those: client certs beat the first, and HMAC of the request and key headers with a secret beat both.
If I'm not mistaken Twilio does this too for their API