Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.Auth.Server.Internal.Class
Contents
Documentation
class IsAuth a v where Source #
IsAuth a ctx v
indicates that a
is an auth type that expects all
elements of ctx
to be the in the Context and whose authentication check
returns an AuthCheck v
.
Instances
FromBasicAuthData usr => IsAuth BasicAuth usr Source # | |||||
Defined in Servant.Auth.Server.Internal.Class Associated Types
| |||||
FromJWT usr => IsAuth Cookie usr Source # | |||||
Defined in Servant.Auth.Server.Internal.Class Associated Types
| |||||
FromJWT usr => IsAuth JWT usr Source # | |||||
Defined in Servant.Auth.Server.Internal.Class Associated Types
|
Helper
class AreAuths (as :: [Type]) (ctxs :: [Type]) v where Source #
class AppCtx (ctx :: [Type]) (ls :: [Type]) res where Source #
AppCtx
applies the function res
to the arguments in ls
by taking the
values from the Context provided.