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

Safe HaskellNone
LanguageHaskell2010

Web.Apiary.Authenticate

Contents

Synopsis

Documentation

data Auth Source

Instances

data Provider Source

Constructors

Provider 

data OpenId_ a Source

Constructors

OpenId_ 

Fields

opLocal :: a
 
params :: [(a, a)]
 
claimed :: Maybe a
 

Instances

initializer

handler

authHandler :: (Monad m, MonadIO actM, Has Auth exts, Has (Session OpenId actM) exts) => ApiaryT exts prms actM m () Source

default auth handlers. since 0.8.0.0.

filter

authorized :: (Has (Session OpenId actM) exts, Monad actM, "auth" </ kvs) => Filter exts actM m kvs (("auth" := OpenId) : kvs) Source

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

authorized' :: (Has (Session OpenId actM) exts, KnownSymbol key, Monad actM, key </ kvs) => proxy key -> Filter exts actM m kvs ((key := OpenId) : kvs) Source

action

authLogout :: (Has (Session OpenId m) exts, Monad m) => ActionT exts prms m () Source

delete session. since 0.7.0.0.

getter

authConfig :: (Has Auth exts, Monad m) => ActionT exts prms m AuthConfig Source

authProviders :: (Has Auth exts, Monad m) => ActionT exts prms m [(Text, Provider)] Source

authRoutes :: (Has Auth exts, Monad m) => ActionT exts prms m [(Text, ByteString)] Source

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