mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 11:42:19 -05:00
rate limit all doorkeeper controllers
using the same limit as user sessions
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -0,0 +1,3 @@
|
||||
class DoorkeeperBaseController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
||||
rate_limit to: 10, within: 3.minutes
|
||||
end
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Doorkeeper.configure do
|
||||
orm :active_record
|
||||
base_controller "ActionController::Base"
|
||||
base_controller "DoorkeeperBaseController"
|
||||
|
||||
# Enabled grant flows
|
||||
grant_flows %w[client_credentials]
|
||||
|
||||
Reference in new issue
Block a user