
3 Aug
2015
3 Aug
'15
7:02 a.m.
Hello, 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" , initOpenId] 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. Thanks, Corentin