Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AuthPerm (perms :: [Symbol])
- newtype AuthAction = AuthAction {
- unAuthAction :: Maybe SimpleToken -> [Permission] -> Handler ()
Documentation
data AuthPerm (perms :: [Symbol]) Source #
An authentication combinator.
TODO maybe move in the servant-auth-api library
Instances
(HasServer api context, PermsList (PlainPerms perms), HasContextEntry context AuthAction) => HasServer (AuthPerm perms :> api :: *) context Source # | |
Defined in Servant.Server.Auth.Token.Combinator | |
type ServerT (AuthPerm perms :> api :: *) m Source # | |
newtype AuthAction Source #
An authentication handler.
AuthAction | |
|