                 done(undefined, {profile:profile})
             passport.use(new PassportStrategy(opts, verify))
 
-            app.get "/auth/#{strategy}", passport.authenticate(strategy)
-
-            app.get "/auth/#{strategy}/return", passport.authenticate(strategy, {failureRedirect: '/auth/local'}), (req, res) ->
+            router.get "/auth/#{strategy}", passport.authenticate(strategy)
+
+            router.get "/auth/#{strategy}/return", passport.authenticate(strategy, {failureRedirect: '/auth/local'}), (req, res) ->
                 profile = req.user.profile
                 passport_login
                     strategy   : strategy

                done(undefined, {profile:profile})
            passport.use(new PassportStrategy(opts, verify))

            app.get "/auth/#{strategy}", passport.authenticate("dropbox-oauth2")

            app.get "/auth/#{strategy}/return", passport.authenticate("dropbox-oauth2", {failureRedirect: '/auth/local'}), (req, res) ->
                profile = req.user.profile
                passport_login
                    strategy   : strategy


        passport.use(new PassportStrategy(verify))

        router.get '/auth/local', (req, res) ->
            res.send("""<form action="/auth/local" method="post">
                            <label>Email</label>
                            <input type="text" name="username">
