Question

Is there anyway to retrieve the Google Oauth refresh_token using Scribe?

I am building an app that requires several scopes mixed between java Gdata and Google api java client libraries -- and I am looking for a Single Sign On (SSO) when a user of my app signs in. However because of the state of current Google Apps API's requiring Oauth 1 or Oauth 2 depending on which library / scope you need, I'm a bit stuck.

  • Oauth 1 (java gdata e.g. analytics data export scope) - requires the access_token secret
  • Oauth 2 (google api java client e.g. analytics calendar scope) - require a refresh token, which is not avail currently in a Scribe OAuth 1 call

Any tips / advice? Anyone managing this with a single sign on?

Was it helpful?

Solution

Scribe has added support for Google OAuth API. I used scribe 1.2.2 and it worked just fine for me.

OTHER TIPS

Sorry scribe does not support (at the time of this writing) Google's OAuth 2.0 Apis.

It shouldn't be too hard to implement using FacebookApi as a guide. Cheers!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top