                 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

            # didn't work.  To figure out that this was the problem, I had to grep the source code of the passport-google-oauth
            # library and put in print statements to see what the *REAL* errors were, since that
            # library hid the errors (**WHY**!!?).
            router.get "/auth/#{strategy}", passport.authenticate(strategy, {'scope': 'openid email profile'})

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