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

Safe HaskellNone

Web.Apiary.Authenticate

Contents

Synopsis

Documentation

data Provider Source

Constructors

Provider 

type HasAuth = ([webApiaryAuthenticateAuth :: Auth], HasSession)Source

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 :: HasAuth => Action ()Source

delete session. since 0.7.0.0.

getter

authConfig :: HasAuth => Action AuthConfigSource

get auth config. since 0.7.0.0.

authProviders :: HasAuth => Action [(Text, Provider)]Source

get providers. since 0.7.0.0.

authRoutes :: HasAuth => Action [(Text, ByteString)]Source

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

reexport