Wednesday, December 5, 2012

Re: [android-developers] OAuth2 refresh token using Google Play Services



On Wednesday, December 5, 2012 12:14:49 AM UTC-8, Nikolay Elenkov wrote:
On Wed, Dec 5, 2012 at 4:58 PM, erdal <etu...@gmail.com> wrote:
> Thank you for your reply!
>
> We have a server that needs to do some periodic requests so we would need
> the refresh token,
> I noticed there is a Bundle extras parameter in the getToken function, but I
> couldn't find any documentation for it.
>

If you have a server, why do you need to do this in Android? You can
get the tokens
using a browser, etc. and put them in your server config files, etc. Or are
you doing anything special?

Right, I am falling back to a webview, but that requires users to type their username and password, which I was hoping to avoid by using the google play API.
 

> Using a webview we managed to get the refresh token, so I was thinking it
> should be possible using the API also because it's a lot nicer.
>

The idea of the API is to make it simple to use for people that don't
necessarily
know the details of the protocol, so they try to wrap as much as possible. It
works quite well in that respect. I just don't quite agree with the ugly class
name though. 'GoogleAuthUtil', really?

Yea, it is fairly simple to use if you don't need a refresh token...
 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment