3

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?

Darren Burgess
  • 4,200
  • 6
  • 27
  • 43
Java Guy
  • 1,005
  • 14
  • 20

2 Answers2

2

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!

Pablo Fernandez
  • 103,170
  • 56
  • 192
  • 232
  • 2
    Pablo, are you going to pull in Devashish's GoogleApi20 changes into the main scribe-java repository? – Pepper Lebeck-Jobe Mar 03 '12 at 15:30
  • @Pablo, Now that Google has [officially deprecated](https://developers.google.com/accounts/docs/OAuth_ref) their support for OAuth 1.0, would you please get OAuth 2.0 support for Google into Scribe? – Old Pro Sep 12 '12 at 00:46
  • hie I looked into the Scribe example for Google OAuth and the example atleast is only for OAuth1.0 ....has support for OAuth2.0 been released? – Mad Scientist Jul 03 '14 at 10:12
1

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

user667914
  • 46
  • 4