packages feed

wai-middleware-crowd 0.1.1.2 → 0.1.2.1

raw patch · 3 files changed

+12/−3 lines, 3 filesdep ~optparse-applicativePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: optparse-applicative

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.2++* --skip-auth command line option+ ## 0.1.1.0  * getUserName
app/wai-crowd.hs view
@@ -20,6 +20,7 @@     , keyFile   :: FilePath     , crowdRoot :: T.Text     , age       :: Int+    , skipAuth  :: Bool     }     deriving Show @@ -47,6 +48,10 @@        <> metavar "COOKIE-AGE"        <> help "Number of seconds to keep auth cookie active"        <> value 3600 )+    <*> switch+        ( long "skip-auth"+       <> help "Turn off Crowd authentication, useful for testing"+        )  data Service = ServiceFiles FileServer              | ServiceProxy ReverseProxy@@ -96,4 +101,4 @@     crowdMiddleware <- mkCrowdMiddleware cs     app <- serviceToApp manager service     putStrLn $ "Listening on port " ++ show warpPort-    run warpPort $ crowdMiddleware app+    run warpPort $ if skipAuth then app else crowdMiddleware app
wai-middleware-crowd.cabal view
@@ -1,5 +1,5 @@ name:                wai-middleware-crowd-version:             0.1.1.2+version:             0.1.2.1 synopsis:            Middleware and utilities for using Atlassian Crowd authentication description:         See README license:             MIT@@ -50,7 +50,7 @@                      , http-client                      , http-client-tls                      , http-reverse-proxy    >= 0.4-                     , optparse-applicative  >= 0.11 && < 0.12+                     , optparse-applicative  >= 0.11 && < 0.13                      , template-haskell                      , text                      , transformers