Skip to main content

Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.

Subscribe Now
Only $19/month

Unlimited access. Cancel anytime.

7 OAuth API Authentication:

Doorkeeper Omniauth OAuth Client

Episode 251 · June 26, 2018

Learn how to authenticate with an API using OAuth and Doorkeeper

APIs OAuth Authentication


No transcripts available. Earn a free month


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


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


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.


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.