Skip to main content

Doorkeeper Omniauth OAuth Client Discussion

General • Asked by Chris Oliver

Gravatar
The video freeze between 0:18 and 0:40, not a big deal imo but I wanted to let you know :)
Gravatar
Thanks for the heads up! What a pain in the butt.

Gravatar

After I click "Authorize" it never makes it to the byebug. I get an error that says:

undefined method `[]' for nil:NilClass

uid { raw_info["id"] }

The error is inside "doorkept-client"

It is referring to the omniauth-doorkept gem inside the file doorkept.rb on line 16

Gravatar

Hey Trevor,

That means your raw_info is returning nil. It should be returning an hash {}.

Also I uploaded all the source code for these finally so you can reference my omniauth gem. I think I made some tweaks to it. https://github.com/gorails-screencasts/oauth-api-authentication

Gravatar

Thanks Chris, I fixed it. The problem was my me.json.jbuilder file was in the wrong directory. :)

Would have corrected this last night, but my comment didn't show up.


Login or create an account to join the conversation.