Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Single sign on for google api's using Scribe?

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?

like image 390
Java Guy Avatar asked Dec 10 '25 19:12

Java Guy


1 Answers

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!

like image 147
Pablo Fernandez Avatar answered Dec 13 '25 07:12

Pablo Fernandez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!