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
    callback_path: '/auth/auth0/callback',
    authorize_params: {
      scope: 'openid email profile'

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.