Skip to content

Commit

Permalink
https://github.com/plataformatec/devise/issues/2692
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo52cn committed Dec 30, 2014
1 parent f61c5b2 commit 850fbae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@
controllers: { omniauth_callbacks: 'spree/omniauth_callbacks' },
path: Spree::SocialConfig[:path_prefix]
resources :user_authentications

devise_scope :user do
match "/users/auth/:provider",
constraints: { provider: /google|facebook/ },
to: "users/omniauth_callbacks#passthru",
as: :user_omniauth_authorize,
via: [:get, :post]
match "/users/auth/:action/callback",
constraints: { action: /google|facebook/ },
to: "users/omniauth_callbacks",
as: :user_omniauth_callback,
via: [:get, :post]
end


get 'account' => 'users#show', as: 'user_root'

Expand Down

0 comments on commit 850fbae

Please sign in to comment.