News for hackers. Stuff that matters.
Re:Ask HN: What's the recommended method of adding authentic... by pivotal on Tuesday January 16, 2018 @09:57AM (#16158588)
What is your reasoning for not using query params for the login request? I know it's probably more RESTful to use POST, but otherwise if you're using HTTPS for everything, query params are just as encrypted as the POST body. Or is there another reason?
Re:Ask HN: What's the recommended method of adding authentic... by sk5t on Tuesday January 16, 2018 @10:02AM (#16158625)
For one, the query string is much more likely to be logged, compared to the entity body. Think: httpd access logs, browser history, misconfigured caches / correctly configured caches subject to inappropriate cache directives, etc.
Re:Ask HN: What's the recommended method of adding authentic... by dmytrish on Tuesday January 16, 2018 @10:09AM (#16158672)
GET requests just do not make sense for actions: they are cacheable and replayable. An http client/a proxy/something on the backend can cache it and avoid going to the actual logic.

Also, mixing credentials into URL does not feel like a good separation of concerns, e.g. URLs are often logged and analyzed in separate logging/monitoring/analytic tools, so there is a bigger risk to have credentials leaked over some side-channel.

Re:Ask HN: What's the recommended method of adding authentic... by marpstar on Tuesday January 16, 2018 @10:10AM (#16158677)
Query params in the URL are encrypted for transmission, but not elsewhere: http://blog.httpwatch.com/2009/02/20/how-secure-are-query-st...