Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Inherit Doorkeeper controllers from ActionController::API

Damian Legawiec448340ba0133
diff --git a/api/config/initializers/doorkeeper.rb b/api/config/initializers/doorkeeper.rb
index a8a0acbbf6..208622b0ad 100644
--- a/api/config/initializers/doorkeeper.rb
+++ b/api/config/initializers/doorkeeper.rb
@@ -2,6 +2,7 @@ Doorkeeper.configure do
orm :active_record
use_refresh_token
api_only
+ base_controller 'ActionController::API'
skip_client_authentication_for_password_grant { true } if defined?(skip_client_authentication_for_password_grant)