We are partnering with a service provider which exposes their services via RESTful API.
We can authenticate with the API by passing a username and password as URL parameters.
Example: https://example.com/api/service.json?api_user=Username&api_key=Password
I know this is using SSL. However, since the username and password are part of the URL, couldn’t this be intercepted by a third party?
No, a third party will only be able to see the destination (example.com). The rest of the URL is actually embedded inside the request.
It helps to understand the process of how an HTTP (or HTTPS) request is made.
issue a request to server on the new connection which will look something like
GET /api/service.json?api_user=Username&api_key=PasswordSince the actual request is part of the encrypted data stream, there’s no way for someone monitoring the connection to extract sensitive information.