Popularity
3.5
Declining
Activity
0.0
Stable
4
3
1
Monthly Downloads: 5
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
snaplet-auth-acid alternatives and similar packages
Based on the "snaplet" category.
Alternatively, view snaplet-auth-acid alternatives based on common mentions on social networks and blogs.
-
snaplet-postgresql-simple
postgresql-simple snaplet for the Snap Framework -
snaplet-persistent
Snaplet for using Persistent in snap applications -
snaplet-acid-state
acid-state snaplet for Snap Framework -
snaplet-actionlog
Create a change log/history for records in your snap application -
snaplet-sqlite-simple
sqlite-simple snaplet for the Snap Framework -
snaplet-mysql-simple
A haskell snaplet for using MariaDB and MySQL database with a Snap Framework application via mysql-simple -
snaplet-stripe
Haskell Snap Framework support for Stripe -
snaplet-sass
Sass integration for Snap with request- and pre-compilation. -
snaplet-haxl
Snaplet for Haxl: https://github.com/facebook/Haxl -
snaplet-postmark
Haskell Snap Framework support for Postmark email system. -
snaplet-coffee
A Haskell Snaplet based off of snaplet-fay, but for coffeescript
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of snaplet-auth-acid or a related project?
README
snaplet-auth-acid
An AcidState backend for Snap's Auth Snaplet
Zopa is the author of this package and is attributed as such.
cabal update && cabal install snaplet-auth-acid
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
-- imports..
import Snap.Snaplet.Auth.Backends.Acid (initAcidAuthManager)
data App = App { _heist :: Snaplet (Heist App)
, _sess :: Snaplet SessionManager
, _auth :: Snaplet (AuthManager App)
}
makeLenses ''App
instance HasHeist App where
heistLens = subSnaplet heist
-- handles, forms and routes go here...
------------------------------------------------------------------------------
-- | The application initializer.
app :: SnapletInit App App
app = makeSnaplet "app" "An snaplet example application." Nothing $ do
h <- nestSnaplet "" heist $ heistInit "templates"
s <- nestSnaplet "sess" sess $ initCookieSessionManager "site_key.txt" "sess" (Just 3600)
a <- nestSnaplet "auth" auth $ initAcidAuthManager defAuthSettings sess
addRoutes routes
addAuthSplices h auth
return $ App h s a
main :: IO ()
main = do
(_, site, _) <- runSnaplet Nothing app
quickHttpServe site