Thursday, January 26, 2012

Logging In to Google: A Commentary on OAuth

Maybe it's just the fact that I'm going about it wrong, and that it's really not meant for C#, but my general opinion of interfacing with Google APIs is that it's like pulling teeth, at least when it comes to DotNet.

First, make sure you find the right pages, and know -exactly- what you want to do and how you want to do it, because there are about 50 different ways to log in and use Google tools, and all of them are slightly different. Then make a project, and get your special top secret keys: something that I agree with on the surface, but why do I need a key for a console app and a web app? And while straight up mobile apps count as console apps, what does a wcf server count as? Because in the end, I want to authenticate on the client, but authorize on the server (to do things like pull your friends list, etc). Add to that the fact the tutorials are cryptic and complex, and it's really just a complicated, painful experience.

In the end, I'm still not fully set up with Google. I also want to interface with Facebook: hopefully that's a little simpler than this has been.