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

No route matches [GET] "/users/facebook/callback" #280

Closed
JoshuaNovak919 opened this issue Jun 26, 2015 · 4 comments
Closed

No route matches [GET] "/users/facebook/callback" #280

JoshuaNovak919 opened this issue Jun 26, 2015 · 4 comments

Comments

@JoshuaNovak919
Copy link

When I try to login with omniauth using facebook I get the following error:

No route matches [GET] "/users/facebook/callback"

Do I need to define the callback somewhere?

My routes:

devise_for :users, controllers: { registrations: "users/registrations", sessions: 'users/sessions' }
  devise_scope :user do
   root :to => 'devise/sessions#new'
  end

  # Api name space
  namespace :api, defaults: { :format => 'json' } do
    namespace :v1 do
      mount_devise_token_auth_for 'User', at: 'auth'
    end
  end
end
@JoshuaNovak919
Copy link
Author

It looks like it has to do with this line in the omni_auth_callbacks_controller.rb:

redirect_route = "/#{Devise.mappings[devise_mapping].as_json["path"]}/#{params[:provider]}/callback"

It seems the Devise.mappings are wrong for some reason.

@booleanbetrayal
Copy link
Collaborator

did you figure this issue out @JoshuaNovak919 ?

@JoshuaNovak919
Copy link
Author

@booleanbetrayal No I didn't. I had so many issues I switched to Doorkeeper for now.

@booleanbetrayal
Copy link
Collaborator

Sorry to hear that @JoshuaNovak919

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