Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.Server.Auth.Token.Combinator
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 Methods route :: Proxy (AuthPerm perms :> api) -> Context context -> Delayed env (Server (AuthPerm perms :> api)) -> Router env # hoistServerWithContext :: Proxy (AuthPerm perms :> api) -> Proxy context -> (forall x. m x -> n x) -> ServerT (AuthPerm perms :> api) m -> ServerT (AuthPerm perms :> api) n # | |
type ServerT (AuthPerm perms :> api :: *) m Source # | |
newtype AuthAction Source #
An authentication handler.
Constructors
AuthAction | |
Fields
|