diff options
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/Proxied.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Auth/Proxied.hs b/Auth/Proxied.hs index 9e15de3..15f5808 100644 --- a/Auth/Proxied.hs +++ b/Auth/Proxied.hs @@ -6,11 +6,11 @@ module Auth.Proxied ) where import Yesod.Auth -import Yesod.Handler (notFound) +import Yesod.Core (lift) +import Yesod.Core.Handler (notFound, waiRequest) import Text.Hamlet (hamlet) -import Yesod.Widget (toWidget) +import Yesod.Core.Widget (toWidget) -import Yesod.Handler (waiRequest) import Data.List (lookup) import Data.Maybe (fromMaybe) import Network.Wai (Request(requestHeaders)) @@ -27,7 +27,7 @@ authProxied = where dispatch _ [] = do mfu <- fmap ((fmap (decodeUtf8 . B.takeWhile (58 /=)) . either (const Nothing) return . Base64.decode . B.drop 1 . B.dropWhile (32 /=) =<<) . lookup (mk "Authorization") . requestHeaders) waiRequest - setCreds True $ Creds "proxied" (fromMaybe "" mfu) [] + lift $ setCreds True $ Creds "proxied" (fromMaybe "" mfu) [] dispatch _ _ = notFound login authToMaster = let url = authToMaster (PluginR "proxied" []) in |