Corentin Dupont
2015-08-03 11:02:05 UTC
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
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
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.