apiary-clientsession-0.11.0: clientsession support for apiary web framework.

Safe HaskellNone

Web.Apiary.ClientSession

Contents

Synopsis

Documentation

setter

csrfToken :: (MonadIO m, HasSession) => ActionT m ByteStringSource

create crypto random (generate random by AES CTR(cprng-aes package) and encode by base64),

set it client session cookie, set XSRF-TOKEN header(when Just angularXsrfCookieName),

and return value. since 0.9.0.0.

filter

session :: (Functor n, MonadIO n, Strategy w, Query a, HasSession) => ByteString -> Proxy (w a) -> ApiaryT (SNext w as a) n m b -> ApiaryT as n m bSource

checkToken :: (Functor n, MonadIO n, HasSession) => ApiaryT c n m a -> ApiaryT c n m aSource

check csrf token. since 0.9.0.0.

Reexport

deleteCookie