Skip to content

Instantly share code, notes, and snippets.

@yatsu
Created July 13, 2012 19:02
Show Gist options
  • Save yatsu/3106711 to your computer and use it in GitHub Desktop.
Save yatsu/3106711 to your computer and use it in GitHub Desktop.
Doorkeeper setting with User model and AdminUser model using Devise
Doorkeeper.configure do
resource_owner_authenticator do |routes|
current_user || warden.authenticate!(:scope => :user) # Devise
end
admin_authenticator do |routes|
authenticate_admin_user!
end
use_refresh_token
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment