diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 36898e7f4a7..4d471507013 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -2,6 +2,9 @@ Doorkeeper.configure do orm :active_record + resource_owner_authenticator do + current_user || redirect_to(login_path) + end admin_authenticator do if current_user