4 ms·
There is no reason to use OAuth ever, in any shape, under any circumstance, which is a bad for the tech but (in this case) good for everybody else. Instead of
by tomjen3 15y ago
There is no reason to use OAuth ever, in any shape, under any circumstance, which is a bad for the tech but (in this case) good for everybody else.
Instead of using the bloated OAuth multiple requests back and forth, permission keys, auth keys, consumer secrects, etc, etc. you can simply add an additional header saying "client id" which the service provider can then use to "secure" his er her service as he sees fit.
OAuth is a bloated attempt to paper around the simple solution so that the astronaut architects who made it can feel smug about themselves.
OAuth solves no problems, helps nobody and has (drastically) polluted our ecosystem. To hell with that shit.
- icebraining 15y agoCan you explain how would that work?
- ryanpetrich 15y ago> you can simply add an additional header saying "client id" which the service provider can then use to "secure" his er her service as he sees fit. OAuth 2.0 is basically that + a standardized protocol for requesting a "client id", which is why it's completely insecure over standard HTTP.
- dpres 15y agoThats why OAuth2.0 protocol is limited to HTTPS and is said to never be implemented over HTTP.
- andrewmccall 15y agoExcept the client id has to be generated so that you know which client was authorised with it - in the case of something like Facebook or twitter, so you can revoke their access. That means you have to agree on a way of exchanging that client ID. Which at it's simplest is what OAuth 2 does with bearer tokens. If you have no use for the other parts of the spec then just ignore them, it's all optional and you only need to implement it if you need it.
- dpres 15y agoSounds like your saying, "Don't use OAuth because it's bloated, create your own API auth protocol and make everyone use that non-standard protocol for my API". That forces developers to implement "custom" protocols per API that may actually be worse than OAuth. You must not be developer. OAuth 2.0 is not bloated and pretty much 2 steps with a clause to never use it via HTTP. How could it be more simple?