Re-enable authentication

This commit is contained in:
Joe Nelson
2014-12-06 17:42:22 -08:00
parent 13bc9a4510
commit a45718e992
6 changed files with 65 additions and 57 deletions
+3 -2
View File
@@ -3,7 +3,6 @@ module Main where
import Paths_dbapi (version)
import App
--import Auth
import Middleware
import Control.Monad (unless)
@@ -50,7 +49,9 @@ main = do
H.session pgSettings sessSettings $ do
session' <- flip runReaderT <$> ask
let runApp req respond =
respond =<< catchJust isSqlError (session' $ app req) sqlErrHandler
respond =<< catchJust isSqlError
(session' $ authenticated (cs $ configAnonRole conf) app req)
sqlErrHandler
liftIO $ runSettings appSettings $ middle runApp
-- . authenticated (cs $ configAnonRole conf) $ app