Faraday::SSLError

Hi,

I’m working through the quick start tutorial for Rails and I’m able to authenticate a user (I’ve verified that by looking in the Auth0 logs and I can see the successful login) but on the callback I’m getting an SSL error. The exact error is: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate). I’m not real sure what is going on inside of Faraday. Here is my setup:

Using the default application:

  • added allowed callback URLs: http://localhost:3000/auth/auth0/callback, https://gatewaypeople.ngrok.io/auth/auth0/callback
  • added allowed logout URLs: http://localhost:3000, https://gatewaypeople.ngrok.io

My auth0 initializer:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider(
    :auth0,
    ENV["AUTH0_CLIENT_ID"],
    ENV["AUTH0_CLIENT_SECRET"],
    ENV["AUTH0_DOMAIN"],
    callback_path: '/auth/auth0/callback',
    authorize_params: {
      scope: 'openid email profile'
    }
  )
end

The rest of the code is basically the tutorial. Thanks for your help.

Solved this problem. IT turns out the problem was because of the firewall setting. Got the infrastructure guy to whitelist what I was doing with Auth0.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.