HTTP Basic in Mobile Apps

This blog post which is making rounds on Twitter tonight highlights a problem with FourSquare, which sounds pretty scary. But if that’s scary, you should see many of the other APIs that mobile apps use — including many apps you probably use every day. This problem is a lot more common than people may realize.

In fact, it affects most Twitter apps that we use on our phones. Twitter realizes this, and has tried to phase out the use of Basic Authentication in their API. At one point they even announced an end to Basic Auth for all new apps, but had to reverse that decision because of developer resistance. Their official policy now is they really want this to go away some day:

“OAuth is the Twitter preferred method of authentication moving forward. While we have no plans in the near term to require OAuth, new applications should consider it best practice to develop for OAuth.  We eventually would like to suspend Basic Auth support. However we realize that Basic Auth has been a large part of the API’s success, and that the barrier to entry if OAuth is the only solution is substantially higher.”

OAuth is, of course, the right answer to this issue. But it can be tricky to implement (for developers) in native apps. And, perhaps more significantly, it can be a little confusing (arguably even a little disconcerting) for users as they get kicked out to the Twitter site to “approve” access for this new application they just downloaded. If you understand OAuth, it’s easy to see this is more secure than giving some app your Twitter password, but explaining that to a user and having them go through the process is often difficult.

So, yes, FourSquare and Twitter and everyone else should implement and require OAuth (and deprecate HTTP Basic), but it’s not their fault that this is not really feasible yet. One thing that I think would really help is OS level support, especially in the user experience for OAuth. I would envision something similar  to how Apple implemented seamless login to restricted WiFi hotspots. If OAuth can be seamlessly weaved into the OS like that (with direct API support), then I’m sure most mobile developers and web services would leverage that quickly. Nobody likes Basic Authentication, but right now it’s just the easiest way to do things.

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

112 Responses to “HTTP Basic in Mobile Apps”

  1. I think the key in Zach’s example is that it’s Basic auth over plaintext HTTP. If they were at least using SSL, you’d be mitigating a huge part of the issue and making it less likely (but not impossible) for someone to intercept and decode your credentials.

  2. True, using SSL is a good improvement (assuming you trust the new app you just bought). It surprising that a lot of apps don’t even do that. Twitter does support this.

    There are some scale issues with that, of course. But then again, the same is true of OAuth.

  3. Hi,

    I just found this post from my Google News reader, very usefull post and blog yiou have. keep it up with great work.

    Jenni

  4. Thanks!

  5. Social comments and analytics for this post…

    This post was mentioned on Twitter by flafeer: @quine @kentbrew @atul Your post was not FUD, but good reminder about a lot of apps and APIs: http://bit.ly/9AFnJl...

  6. thnx for the info, i’m adding you to my blogroll.

  7. True, using SSL is a good improvement (assuming you trust the new app you just bought). It surprising that a lot of apps don’t even do that. Twitter does support this.

    There are some scale issues with that, of course. But then again, the same is true of OAuth.

Trackbacks/Pingbacks

  1. uberVU - social comments - 03. Mar, 2010

    Social comments and analytics for this post…

    This post was mentioned on Twitter by flafeer: @quine @kentbrew @atul Your post was not FUD, but good reminder about a lot of apps and APIs: http://bit.ly/9AFnJl...

  2. ANGEL - 28. Jul, 2011

    Order@Coral.Calcium.Online” rel=”nofollow”>..

    Buygeneric pills…

  3. EDUARDO - 29. Jul, 2011

    Buy@Cheap.Abana” rel=”nofollow”>..

    Buygeneric pills…

  4. PERRY - 29. Jul, 2011

    Purchase@Abilify.Online” rel=”nofollow”>…

    Buywithout prescription…

  5. DUSTIN - 29. Jul, 2011

    Cheap@Generic.Abilify” rel=”nofollow”>..

    Buygeneric drugs…

  6. BRANDON - 29. Jul, 2011

    Buy@Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..

    Buyno prescription…

  7. ROY - 29. Jul, 2011

    Buy@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>…

    Buywithout prescription…

  8. RUSSELL - 30. Jul, 2011

    Purchase@Discount.Acai” rel=”nofollow”>..

    Buywithout prescription…

  9. SALVADOR - 30. Jul, 2011

    Cheap@Acai.Online” rel=”nofollow”>…

    Buynow…

  10. EDUARDO - 31. Jul, 2011

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>.

    Buynow it…

  11. RONALD - 31. Jul, 2011

    Buy@Cheap.Coral.Calcium” rel=”nofollow”>…

    Buygeneric meds…

  12. SALVADOR - 01. Aug, 2011

    Order@Discount.Abana” rel=”nofollow”>..

    Buygeneric meds…

  13. LEWIS - 01. Aug, 2011

    Buy@Abilify.Online” rel=”nofollow”>..

    Buynow it…

  14. LESLIE - 02. Aug, 2011

    Buy@Cheap.Abilify” rel=”nofollow”>…

    Buygeneric pills…

  15. RALPH - 03. Aug, 2011

    Buy@Cheap.Acai” rel=”nofollow”>…

    Buygeneric drugs…

  16. SAMUEL - 03. Aug, 2011

    Buy@Cheap.Acai” rel=”nofollow”>…

    Buygeneric drugs…

  17. FELIX - 03. Aug, 2011

    Order@Acai.Online” rel=”nofollow”>…

    Buyit now…

  18. NATHAN - 05. Aug, 2011

    Order@Discount.Energy.Boost” rel=”nofollow”>.…

    Buynow it…

  19. ADAM - 05. Aug, 2011

    Buy@Discount.Accupril” rel=”nofollow”>.…

    Buyno prescription…

  20. BOB - 05. Aug, 2011

    Order@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  21. BYRON - 06. Aug, 2011

    Buy@Discount.Accutane” rel=”nofollow”>.…

    Buynow it…

  22. BRUCE - 06. Aug, 2011

    Order@Cheap.Accutane” rel=”nofollow”>.…

    Buygeneric drugs…

  23. LOUIS - 06. Aug, 2011

    .

    Buygeneric drugs…

  24. ANDREW - 08. Aug, 2011

    Cheap@Aciphex.Without.Prescription” rel=”nofollow”>.…

    Buynow it…

  25. CLIFTON - 10. Aug, 2011

    Cheap@Generic.Actonel.35mg” rel=”nofollow”>..

    Buygeneric meds qmo…

  26. VICTOR - 11. Aug, 2011

    Get@Actoplus.Met.Online” rel=”nofollow”>..

    Buygeneric pills zdg…

  27. RAY - 11. Aug, 2011

    Order@Cheap.Actos” rel=”nofollow”>.

    Buygeneric drugs zfk…

  28. SERGIO - 11. Aug, 2011

    Buy@Actos.Without.Prescription” rel=”nofollow”>.

    Buyno prescription luw…

  29. LLOYD - 12. Aug, 2011

    Cheap@Coral.Calcium.Online” rel=”nofollow”>…

    Buywithout prescription xiu…

  30. MARCUS - 13. Aug, 2011

    Order@Discount.Abana” rel=”nofollow”>..

    Buynow it vhx…

  31. MARION - 14. Aug, 2011

    Order@Cheap.Acai” rel=”nofollow”>..

    Buyno prescription gdt…

  32. JOEL - 15. Aug, 2011

    Generic@Acai.500mg.Without.Prescription” rel=”nofollow”>..

    Buyno prescription wkp…

  33. BRYAN - 15. Aug, 2011

    Buy@Cheap.Accupril” rel=”nofollow”>.

    Buygeneric drugs nih…

  34. AUSTIN - 15. Aug, 2011

    Order@Cheap.Accupril” rel=”nofollow”>.

    Buynow it fnp…

  35. RONNIE - 16. Aug, 2011

    Cheap@Accupril.Online” rel=”nofollow”>..

    Buygeneric drugs ajd…

  36. LEROY - 16. Aug, 2011

    Order@Accutane.Online” rel=”nofollow”>…

    Buyit now sge…

  37. MARION - 16. Aug, 2011

    Order@Discount.Accutane” rel=”nofollow”>.

    Buygeneric drugs mby…

  38. JASON - 17. Aug, 2011

    Purchase@Cheap.Accutane” rel=”nofollow”>…

    Buywithout prescription ccw…

  39. VINCENT - 17. Aug, 2011

    Cheap@Accutane.10mg.20mg” rel=”nofollow”>.

    Buyit now ojb…

  40. RONALD - 17. Aug, 2011

    Buy@Aciphex.Online” rel=”nofollow”>.

    Buygeneric drugs itj…

  41. MARVIN - 18. Aug, 2011

    Order@Aciphex.Online” rel=”nofollow”>.

    Buynow it lmg…

  42. JOHNNY - 18. Aug, 2011

    Order@Discount.Aciphex” rel=”nofollow”>…

    Buygeneric meds svb…

  43. DUANE - 21. Aug, 2011

    Purchase@Discount.Acomplia” rel=”nofollow”>..

    Buynow it sgk…

  44. REGINALD - 22. Aug, 2011

    Order@Actonel.Without.Prescription” rel=”nofollow”>…

    Buydrugs without prescription jlg…

  45. GERARD - 22. Aug, 2011

    Order@Advair.Online” rel=”nofollow”>..

    Buyit now irl…

  46. EVAN - 24. Aug, 2011

    < a href="http://trig.com/advair5771/biography/?ml=Advair-25mcg/50mcg-25mcg/125mcg-25mcg/250mcg-50mcg/500mcg-50mcg/100mcg-50mcg/250mcg-Without-Prescription Advair@25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg.Without.Pr

    Buydrugs without prescription ygy…

  47. ALVIN - 24. Aug, 2011

    Buy@Cheap.Aggrenox” rel=”nofollow”>..

    Buygeneric meds dxy…

  48. RAUL - 25. Aug, 2011

    Buy@Cheap.Aldactone” rel=”nofollow”>..

    Buydrugs without prescription hak…

  49. BRAD - 26. Aug, 2011

    can@you.take.aciphex.and.nexium.at.the.same.time” rel=”nofollow”>..

    Buygeneric pills…

  50. DARRYL - 26. Aug, 2011

    actonel@and.heart.irregularities” rel=”nofollow”>..

    Buyno prescription…