Skip to content

Running Doorkeeper with Devise

shubhangisingh edited this page Jan 13, 2017 · 3 revisions

In case you want to use Doorkeeper with devise The resource_owner_authenticator should be replaced by below block to generate auth_tokens for your client apps

resource_owner_authenticator do |routes|
  # Put your resource owner authentication logic here.
  # If you want to use named routes from your app you need
  # to call them on routes object eg.
  # routes.new_user_session_path
  current_user || warden.authenticate!(:scope => :user)
end
Clone this wiki locally