Skip to content

Instantly share code, notes, and snippets.

@nilsandrey
Created June 1, 2021 12:47
Show Gist options
  • Save nilsandrey/055ba5dafc8f042ab49248dac3fac886 to your computer and use it in GitHub Desktop.
Save nilsandrey/055ba5dafc8f042ab49248dac3fac886 to your computer and use it in GitHub Desktop.
OmniAuth initializer configuration to enable all environments browse to your Auth0Controller::failure route
OmniAuth.configure do |config|
# Always use /auth/failure in any environment
config.failure_raise_out_environments = []
end
@nilsandrey
Copy link
Author

This is a complement to the answer found at SO: https://stackoverflow.com/a/10737754/2100126.
IMF is included in a comment of the accepted answer and in another answer with low votes count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment