Safe Haskell | None |
---|
- data Session
- data SessionConfig = SessionConfig {
- sessionKeyFile :: FilePath
- sessionMaxAge :: DiffTime
- sessionPath :: Maybe ByteString
- sessionDomain :: Maybe ByteString
- sessionHttpOnly :: Bool
- sessionSecure :: Bool
- angularXsrfCookieName :: Maybe ByteString
- csrfTokenCookieName :: ByteString
- csrfTokenCheckingName :: Either HeaderName ByteString
- csrfTokenLength :: Int
- withSession :: MonadIO m => SessionConfig -> (Session -> m b) -> m b
- setSession :: MonadIO m => Session -> ByteString -> ByteString -> ActionT m ()
- csrfToken :: MonadIO m => Session -> ActionT m ByteString
- session :: (Functor n, MonadIO n, Strategy w, Query a) => Session -> ByteString -> Proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m b
- checkToken :: (Functor n, MonadIO n) => Session -> ApiaryT c n m a -> ApiaryT c n m a
- mkSessionCookie :: SessionConfig -> Key -> ByteString -> ByteString -> IO SetCookie
- getSessionValue :: Session -> UTCTime -> ByteString -> Maybe ByteString
- module Data.Default.Class
- module Web.Apiary.Cookie
Documentation
data SessionConfig Source
withSession :: MonadIO m => SessionConfig -> (Session -> m b) -> m bSource
actions
setSession :: MonadIO m => Session -> ByteString -> ByteString -> ActionT m ()Source
filters
session :: (Functor n, MonadIO n, Strategy w, Query a) => Session -> ByteString -> Proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m bSource
lowlevels
mkSessionCookie :: SessionConfig -> Key -> ByteString -> ByteString -> IO SetCookieSource
:: Session | |
-> UTCTime | current time |
-> ByteString | |
-> Maybe ByteString |
reexports
module Data.Default.Class
deleteCookie
module Web.Apiary.Cookie