-
Notifications
You must be signed in to change notification settings - Fork 8
NoMethodError when using OAuth2 login #12
Comments
Hey @aboutaaron - sorry for the trouble! I'll test out sinatra As for the Problem overview
Basically it's requesting two permissions from Google: Access to your Drive files, and your email address to use as an ID. The {
"kind": "plus#person",
"etag": "\".......\"",
"gender": "male",
"emails": [
{
"value": "[email protected]",
"type": "account"
}
],
"objectType": "person",
"id": ".......",
"displayName": "Michael Strickland",
"name": {
"familyName": "Strickland",
"givenName": "Michael"
},
"url": "https://plus.google.com/116716851622762772517",
"image": {
"url": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=50",
"isDefault": true
},
"isPlusUser": true,
"circledByCount": 2,
"verified": false,
"domain": "nytimes.com"
} Ideally, Suggestions
For example, if you added all of those as scopes, the line in driveshaft could read:
Let me know if you're able to try any of those, otherwise I can try to help out more. Best, |
Looking into another issue it seems like this could be caused by not enabling the Google+ API in your google project's settings. @aboutaaron, if you're still stuck on this, or for others finding this in the future, try enabling that API to fix this. |
Hey all, great project. I was following the Web Application Google Drive instructions here and received the following error after attempting to authenticate with my Google account:
I'm on Ubuntu 14.04 and have Ruby 2.2.1 installed with rbenv.
After searching for this error online, I discovered this discussion in the Sinatra repo: sinatra/sinatra#951. Apparently, Sinatra 1.4.5 (the version driveshaft is built on) has some issues with updated versions of Rack. I bumped Sinatra to 1.4.6 and attempted to authenticate again which gave me a
NoMethodError
at https://github.com/newsdev/driveshaft/blob/develop/lib/driveshaft/auth.rb#L130I'll keep diagnosing but I'm curious if y'all have any ideas. Any guidance would be great. Thanks! I look forward to using this project regularly!
The text was updated successfully, but these errors were encountered: