-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credentials from OmniAuth? #81
Comments
@epugh great question. I just played around in irb and figured out how to get it working. =)
Just make sure you have "calendar" listed in your initial scope when using omniauth-google-oauth2. I believe this should work with any of the Service objects included with the google-api-ruby-client gem. Hope this helps. |
@zquestz this definitely gives me fresh hope of cracking this nut! I made the changes (I'm using Google Drive, not calendar), and I'm getting this error back, which I think may be related to my original Omniauth setup. Error:
Omniauth setup:
|
Okay, so one thing I realized was that I had an older version of
and from my
However, still getting the grant_type error:
|
I was getting the |
Can't this be added to the examples in the README? I've had the same problem and it took me quite some time to find this solution which works nicely for me. |
Let me know if you need anything from my end. =) |
This is my savior tonight. Very poor documentation on setting omni auth scope when requesting access. Thank you. |
Just wanted to share where I've got to on this, at time of writing, this works. I'm using the following to access gsuite admin directory SDK to get our staff phone numbers from the directory service.
OmniAuthCallback
Thanks to all those who've helped here and in other threads. |
In case useful to others, I wrote up a blog post about this: https://medium.com/@_benrudolph/end-to-end-devise-omniauth-google-api-rails-7f432b38ed75 |
Hi everyone, Sorry for the long delay here. We're getting caught up on the issue backlog now, and will look into adding some relevant information to the documentation. |
Did this ever get documented? |
FYI I have successfully replaced 'google/api_client/client_secrets' with signet.
|
I am consolidating some of these issues, and #367 was also created for tracking the documentation gap. Closing here in favor of the newer thread. |
Hi,
I haven't been able to successfully construct the credentials required to use the new google-api-ruby-client after logging in with OmniAuth. I saw this blog article: http://www.thegreatcodeadventure.com/using-the-google-api-ruby-client-with-google-calendar-api/ but they also had problems with the newer library.
Was wondering if there are any pointers to how to leverage the great Omniauth provider, but then use this client library?
The text was updated successfully, but these errors were encountered: