Re:HTTP cookies, or how not to design protocols
by mjw on Friday October 29, 2010 @04:22PM
(#1848868)
What about for SSL-based APIs? it seems a pretty optimal choice for those.
Re:HTTP cookies, or how not to design protocols
by tptacek on Friday October 29, 2010 @04:33PM
(#1848906)
I don't think it is, for two reasons:
(1) For most large apps, you're not really SSL in the provider's own network, so there's always the cross-app risk if something horrible happens.
(2) It's forcing app-to-app, business-to-business authentication into a username/password mold that doesn't many any real sense; a 128 bit random key (or an SSL client cert) makes more sense anyways.
Against those two problems --- which are marginal, I concede --- HTTP Basic offers... exactly what advantage? I don't see it.
But my point is just: HTTP Auth is not the best-practices answer to non-browser web services auth. Both API-key and signed URLs are both competitive (and probably better) options.