Created
July 13, 2012 19:02
-
-
Save yatsu/3106711 to your computer and use it in GitHub Desktop.
Doorkeeper setting with User model and AdminUser model using Devise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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