Closed GoogleCodeExporter closed 9 years ago
Hi Scott,
I don't know much about OAuth, but the latest release contains
AssertionFlowClient which uses JWT, does this satisfy your requirements?
Thanks,
David.
Original comment by davidwat...@google.com
on 4 Sep 2012 at 9:19
Thanks for the reply David...I'm not sure if this will do the trick or not, but
it does look promising (I did a search on AssertionFlowClient and came across
this:
http://code.google.com/p/google-api-dotnet-client/source/browse/Src/GoogleApis.A
uthentication.OAuth2/DotNetOpenAuth/AssertionFlowClient.cs).
Basically our scenario is one where we interact with various Google APIs
(primarily DFA and Google Analytics at the moment) to pull metrics for our
customers on their various campaigns. Since it is an automated process that
runs each day to pull the data back we need an authentication mechanism that is
hands-off (i.e. does not require any user intervention). Unfortunately all the
Google OAuth examples online seem to focus on scenarios where user intervention
is part of the handshake so the server-to-server scenario with JWT
(https://developers.google.com/accounts/docs/OAuth2ServiceAccount) sounded like
the correct approach for us. Is my thinking correct in this sense?
thanks
Original comment by scottand...@gmail.com
on 5 Sep 2012 at 2:23
Another way to accomplish the same thing is to get and save a refresh token
(human interaction required) and then use that to get a session token (no human
interaction required). So assuming you have a small number of accounts you wish
to process, you can get tokens once with human intervention and then use them
for every after.
For more details you can see
http://stackoverflow.com/questions/8257678/google-calendar-api-v3-hardcoded-cred
entials/8263138#8263138
JWTs may provide a better way of doing this, but I know next to nothing about
them.
Hope that helps.
David.
Original comment by davidwat...@google.com
on 5 Sep 2012 at 2:32
Original issue reported on code.google.com by
scottand...@gmail.com
on 14 Jun 2012 at 10:49