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.

Disable client authentication for password grant in the Doorkeeper (#10796)

Damian Kaczmarczyk794bbc359d38
diff --git a/api/config/initializers/doorkeeper.rb b/api/config/initializers/doorkeeper.rb
index b487b06a09..63d537c800 100644
--- a/api/config/initializers/doorkeeper.rb
+++ b/api/config/initializers/doorkeeper.rb
@@ -3,6 +3,8 @@ Doorkeeper.configure do
use_refresh_token
api_only
+ skip_client_authentication_for_password_grant { true } if defined?(skip_client_authentication_for_password_grant)
+
resource_owner_authenticator { current_spree_user }
resource_owner_from_credentials do