No route matches "/ oauth / authorize"

I started integrating Omniauth 1.0 into my Rails / Authlogic application and I get a route error when I try to access localhost:3000/auth/facebook .

Do we intend to create a custom route for each /auth/strategy we want, or is there something else wrong here?

 # gemfile gem 'omniauth-facebook' # routes resources :authentications match '/auth/:provider/callback' => 'authentications#create' # config/initializers/omniauth.rb Rails.application.config.middleware.use OmniAuth::Builder do provider :facebook, '20...', 'bc...' end # accessing /auth/facebook No route matches "/oauth/authorize" 
+4
source share
1 answer

Updated my gemfile with

 gem "omniauth-facebook", :git => "git://github.com/mkdynamic/omniauth-facebook.git" 

and he worked.

+7
source

Source: https://habr.com/ru/post/1379546/


All Articles