Permalink
Browse files

Set path_prefix explicitly in middleware initializer

  • Loading branch information...
1 parent 4d47a6f commit 20411a80949b399a7baf64e00ff9e7eca2ae6e81 @rossta committed Apr 2, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/open_sesame/engine.rb
View
@@ -21,7 +21,15 @@ class Engine < ::Rails::Engine
OpenSesame::Github.organization_name = OpenSesame.organization_name
- middleware.use OmniAuth::Strategies::GitHub, OpenSesame.github_client[:id], OpenSesame.github_client[:secret]
+ middleware.use OmniAuth::Builder do
+ configure do |config|
+ config.path_prefix = '/auth'
+ end
+
+ provider :github, OpenSesame.github_client[:id], OpenSesame.github_client[:secret]
+ end
+
+
if defined?(Devise)
Devise.setup do |config|
config.warden do |manager|

0 comments on commit 20411a8

Please sign in to comment.