apiary-authenticate-0.8.0.0: authenticate support for apiary web framework.

Safe HaskellNone

Web.Apiary.Authenticate

Contents

Synopsis

Documentation

data Provider Source

Constructors

Provider 

authHandler :: (Functor n, MonadIO n, HasAuth) => ApiaryT c n m ()Source

default auth handlers. since 0.8.0.0.

filter

authorized :: HasAuth => Apiary (Snoc as ByteString) a -> Apiary as aSource

filter which check whether logged in or not, and get id. since 0.7.0.0.

action

authLogout :: (Monad m, HasAuth) => ActionT m ()Source

delete session. since 0.7.0.0.

getter

authConfig :: (Monad m, HasAuth) => ActionT m AuthConfigSource

get auth config. since 0.7.0.0.

authProviders :: (Monad m, HasAuth) => ActionT m [(Text, Provider)]Source

get providers. since 0.7.0.0.

authRoutes :: (Monad m, HasAuth) => ActionT m [(Text, ByteString)]Source

get authenticate routes: (title, route). since 0.7.0.0.

reexport