trabajo-afectivo/config/routes/auth.rb

17 lines
457 B
Ruby
Raw Normal View History

module ExtraRoutes
def add(map)
# omniauth
map.match '/auth/:provider/callback', :to => 'sessions#create_omniauth'
2012-11-22 14:40:36 +00:00
2013-02-17 18:28:32 +00:00
# sso
map.match '/auth/sso', :to => 'sessions#create_sso'
# sessions
map.match '/signin', :to => 'sessions#create'
map.match '/signshow', :to => 'sessions#show'
map.match '/signout', :to => 'sessions#destroy'
2012-11-22 14:40:36 +00:00
end
module_function :add
end