[Haskell-cafe] happstack-authenticate 2
corentin.dupont at gmail.com
Mon Aug 3 11:02:05 UTC 2015
I'm a bit confused about the routeAuthenticate and authenticateState bits
in the new happstack-authenticate.
It seems that I have to do this in the beginning of my application:
(_, routeAuthenticate, authenticateState) <-
liftIO $ initAuthentication Nothing (const $ return True)
[ initPassword "http://localhost:8000/#resetPassword" "example.org"
Where this should be done? In the main? If possible I'd prefer to delay it
because my main is web-agnotic.
Where should I store those two values? Should I put them in my monad stack
(I have a StateT)?
Is the routeAuthenticate really necessary? It looks a bit cumbersome to
carry it around everywhere in the states.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe