apiary-authenticate-1.2.1: 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, NotMember "auth" kvs) => ApiaryT exts (("auth" := OpenId) : kvs) actM m () -> ApiaryT exts kvs actM m () 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, NotMember key kvs) => proxy key -> ApiaryT exts ((key := OpenId) : kvs) actM m () -> ApiaryT exts kvs actM m () 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.