Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with omniauth #10

Open
phuong-nguyen opened this issue Oct 13, 2011 · 1 comment
Open

Conflict with omniauth #10

phuong-nguyen opened this issue Oct 13, 2011 · 1 comment

Comments

@phuong-nguyen
Copy link

This route:

match '*address' => 'application#render_404_error' unless Rails.application.config.consider_all_requests_local

make omniauth stop working in our app as described in https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview :

As of March, Omniauth now calls through to the app for dynamic configuration settings and you will need to define a route for /auth/:provider that results in a 404 so Omniauth knows how to proceed

The fix is to exclude /users/auth/:provider from the route (as described here: http://stackoverflow.com/questions/7365215/omniauth-devise-user-auth-facebook-magic-route-question):
match "*path" => "application#render_404_error", :constraints => lambda {|req| !req.path.starts_with?("/users/auth/") } (in which user is the model that is omniauthable)

@logankoester
Copy link
Owner

@phuong-nguyen - How does this look? #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants