Closed micha1805 closed 6 years ago
Did you fix this on your own, or move this to a different project?
For others who may find this, when I was facing this issue, it was because I did not properly set up the omniauth initializer to include the required stripe keys:
I had set up this file:
# config/initializers/omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider :stripe_connect, ENV['STRIPE_CONNECT_CLIENT_ID'], ENV['STRIPE_CLIENT_SECRET']
end
But forgot to put the keys into my .env
file.
Every time I try to connect to the Stripe Connect API I get this failure in authentication, 'redirecting' me to the failure method of the Omniauth callback controller :
I found in the doc that an error of
invalid_client
meant either one of these :https://stripe.com/docs/connect/oauth-reference#post-deauthorize-error-codes
client_id
does not belong to youstripe_user_id
does not exist or is not connect to your applicationclient_id
modeBut i doubled checked and it's none of these.
Does anyone has an idea ?