I've 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
.
Are we supposed 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"