rate limit all doorkeeper controllers

using the same limit as user sessions
This commit is contained in:
James Smith committed 2025-11-26 17:17:55 +00:00
1 parent 10bfcbdaf4
commit bfda4eacce
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
+1 -1
View File
@@ -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]