Hi!

I want to use signin for drive API

https://developers.google.com/drive/web/quickstart/java

To work with Drive, I must have GoogleCredential object

If I use google-signin with offline propertie, it's ok :
https://developers.google.com/identity/sign-in/web/server-side-flow

example :
public String getRefreshToken(String code) throws IOException {
GoogleTokenResponse response = new GoogleAuthorizationCodeTokenRequest(new 
NetHttpTransport(),
new JacksonFactory(), clientid, clientsecret, code, redirectUrl).execute();
return response.getRefreshToken();
}


BUT... how get GoogleCredential without offline... for web applications ????
I can't find documentation

thank you in advance for your ideas !

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/b7b2a05b-d13f-464b-85f7-b2ac85cf7c34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to