How to use oAuth with GA api

2 views
Skip to first unread message

Mr. SearchAlot

unread,
Aug 26, 2009, 2:35:06 PM8/26/09
to google-analytics-api - GA Data Export API
I had my app all finished but the login situation was extremely
insecure. So I started looking into oAuth. A sweet way to not have to
handle login security. Unfortunately, I'm a first year php programmer
and can't figure out how to make oAuth work with the GA api. Does
someone have a set of sample pages that I can view that walks through
the entire login process AND connects to GA?

Nick

unread,
Aug 27, 2009, 2:37:22 AM8/27/09
to google-analytics-api - GA Data Export API
Hey There,

So OAuth has a bunch of steps (a dance) you need to follow.

Of course oauth.net is a great resource.

But we also have an outline describing each of the steps here:
http://code.google.com/apis/accounts/docs/OAuth.html#AuthProcess
The OAuth playground is a great way to see the process in action:
http://googlecodesamples.com/oauth_playground/
And the playground has been open sourced. Specifically here's the code
that deals with oAuth (in PHP):
http://code.google.com/p/gdata-samples/source/browse/trunk/oauth_playground/OAuth.php

Hope those help,
-Nick

Mr. SearchAlot

unread,
Aug 27, 2009, 4:36:26 PM8/27/09
to google-analytics-api - GA Data Export API
right now, I'm having issues getting google to accept my ssl cert. my
provider gave me a 2048 bit ssl and Google specifies 1024. It won't
take it and I'm having trouble getting my provider to reduce the cert
to 1024bit. I understand google not taking less than 1024, but it
won't take 2048 either? So I'm stuck on an error in my program that
says there is no cert for my domain.
Should google accept both? Perhaps I'm doing something wrong? Do I
need ssl security at all for GA?
Reply all
Reply to author
Forward
0 new messages