How not to write an API
151–160 of 172 posts
Re: How not to write an API
#152Raw password storage is more common than we like to believe. A simple way for webapps to communicate that raw passwords are not being stored would be convenient. A small 'NORAWPW' image in the footer perhaps. it would ease my worries, especially with cryptocurrency related webapps.
No thanks!
Re: How not to write an API
#153Earlier quoted context omitted.
Even if your api uses oAuth I don't see how can you prevent the client app to steal the password. At some point the user is going to have to give his password to someone. Can't the app ask the user for his password, keep it, and internally give it to oAuth to allow to use your api?
The user will enter their password on the provider's site via the phone browser. It relies on the user's trust of the system browser.
Re: How not to write an API
#154Earlier quoted context omitted.
You mean like Symfony, Laravel, etc? Frameworks that a lot of PHP developers use these days...
You dont need a framework to do PHP webdev, in every other languages,you do.That's my point, PHP IS a templating language,no Symfony,Zend or Laravel can change that. If i write "print" in Python it wont output the result back to HTTP like PHP does. Ruby or Java dont have <?ruby or <?java tags, you get my point.
Re: How not to write an API
#155Earlier quoted context omitted.
All the php hate I've seen over the years is because of one guy who doesn't know what he's doing? ;)
Oh yeah, I forgot, because of the low barrier of entry, PHP is the only language in the history of all programming languages where there are people who don't know what they are doing. Forgot that all Python, Ruby, etc devs are gods gift to programming and don't make mistakes. My good, your bad.
Re: How not to write an API
#156How should an app utilizing an API send the API key so it can't be hijacked with tcpdump?
Re: How not to write an API
#157How should an app utilizing an API send the API key so it can't be hijacked with tcpdump?
By using HTTPS/SSL. But the onus of that is on the API provider...
Re: How not to write an API
#158Earlier quoted context omitted.
Oh yeah, I forgot, because of the low barrier of entry, PHP is the only language in the history of all programming languages where there are people who don't know what they are doing. Forgot that all Python, Ruby, etc devs are gods gift to programming and don't make mistakes. My good, your bad.
upvoting you despite your inability to take a bit of good-natured ribbing
Rarely do you see PHP developers talking about the pitfalls of big frameworks and other languages.. For example XSS vulnerabilities that recently plagued Rails.
I too have upvoted both your replies to show no ill will. Beautiful day here in Chicago and I took a little time off to cruise the city before coming back and getting back to work. Really puts you in a good mood.
Re: How not to write an API
#159Earlier quoted context omitted.
I don't care if this comes off as trolling, but here it is: as I read through this, I thought to myself, much like the author, "how appaling!" - then I saw the word "PHP" - and went "oh, well that means there's gonna be a bunch of people hating on a language because one developer doesn't know what he's doing and happens to be using that language".
All the php hate I've seen over the years is because of one guy who doesn't know what he's doing? ;)
Re: How not to write an API
#160Earlier quoted context omitted.
I dont think you realize how common the WTFs in this situation are. If you are dealing with a reputable company, this is super super WTF. When you are looking at a small website/API someone made for fun or something....It can normally be badly broken in less than 2-3 minutes....and I'm not even that talented like some of the guys out there.
My day job is web developer and i sit in an IRC channel where roughly half the traffic is making fun of security issues of sites. Such a glorious combination of fuckups doesn't come about that often. I'm honestly more apalled that the passwords are in plaintext than that they expose them like that. I cannot say i am surprised though. A general amount of carelessness, undeserved self-confidence and ignorance is a give…