OAuth unattended authentication

143 views
Skip to first unread message

Mykhaylo Khodorev

unread,
Mar 27, 2012, 3:33:04 PM3/27/12
to google-docum...@googlegroups.com
Is it possible to perform authentication with OAuth without user interaction?

Ali Afshar

unread,
Mar 27, 2012, 3:36:48 PM3/27/12
to google-docum...@googlegroups.com
Hi Mykhaylo,

You can use OAuth 2.0 for this, either with a stored token, or with the new service accounts [1].

Regards



On Tue, Mar 27, 2012 at 3:33 PM, Mykhaylo Khodorev <ral...@gmail.com> wrote:
Is it possible to perform authentication with OAuth without user interaction?

--
Ali Afshar | www.googplus.org/ali | Google Developer Relations

Mykhaylo Khodorev

unread,
Mar 28, 2012, 3:16:52 AM3/28/12
to google-docum...@googlegroups.com
Thank you.
Can you please give a reference to example how to use stored token. I couldn't find it in documentation (bad search?)
Does this method allow accessing to user data (tasks, mail, calendar, documents...)?

Ali Afshar

unread,
Mar 28, 2012, 9:40:03 AM3/28/12
to google-docum...@googlegroups.com
Hi Mykhaylo,

There is nothing special to it, you should save your access token when you get it to disk, anyway you like, and then load it at a later date. The token will refresh itself when it expires.

Regards
Reply all
Reply to author
Forward
0 new messages