You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hitting an issue where omniauth works in dev mode but not in production using passenger. Under passenger, I am redirected correctly by my app to /auth/auth0 (as I use the auth0 provider) but then get an error from nginx that that url doesn't exist. This is my omniauth config:
configure do
set :sessions, true
set :session_secret, (ENV['SESSION_SECRET'].to_s == '' ? SecureRandom.base64 : ENV['SESSION_SECRET'])
OmniAuth.configure do |config|
# Always use /auth/failure in any environment
config.failure_raise_out_environments = []
end
use OmniAuth::Builder do
provider :auth0, ENV['AUTH0_CLIENT_ID'], ENV['AUTH0_CLIENT_SECRET'], ENV['AUTH0_DOMAIN']
end
end
I've ran this to show my routes:
require_relative 'main' # my sinatra app
Sinatra::Application.routes["GET"].each do |route|
puts route[0]
end
but that shows only these auth-related routes, even in my development environment:
I'm hitting an issue where omniauth works in dev mode but not in production using passenger. Under passenger, I am redirected correctly by my app to
/auth/auth0
(as I use the auth0 provider) but then get an error from nginx that that url doesn't exist. This is my omniauth config:I've ran this to show my routes:
but that shows only these auth-related routes, even in my development environment:
but these are all mine, I was expecting
/auth/auth0
(or a regex matching it) to be listed too.The text was updated successfully, but these errors were encountered: