Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AuthHookType
- data AuthHook = AuthHook {
- ahUrl :: Text
- ahType :: AuthHookType
- ahSendRequestBody :: Bool
- userInfoFromAuthHook :: forall m. (MonadIO m, MonadBaseControl IO m, MonadError QErr m) => Logger Hasura -> Manager -> AuthHook -> [Header] -> Maybe ReqsText -> m (UserInfo, Maybe UTCTime, [Header])
Documentation
data AuthHookType Source #
Instances
Show AuthHookType Source # | |
Defined in Hasura.Server.Auth.WebHook showsPrec :: Int -> AuthHookType -> ShowS # show :: AuthHookType -> String # showList :: [AuthHookType] -> ShowS # | |
Eq AuthHookType Source # | |
Defined in Hasura.Server.Auth.WebHook (==) :: AuthHookType -> AuthHookType -> Bool # (/=) :: AuthHookType -> AuthHookType -> Bool # | |
FromEnv AuthHookType Source # | |
Defined in Hasura.Server.Init.Env |
AuthHook | |
|
Instances
userInfoFromAuthHook :: forall m. (MonadIO m, MonadBaseControl IO m, MonadError QErr m) => Logger Hasura -> Manager -> AuthHook -> [Header] -> Maybe ReqsText -> m (UserInfo, Maybe UTCTime, [Header]) Source #
Makes an authentication request to the given AuthHook and returns UserInfo parsed from the response, plus an expiration time if one was returned. Optionally passes a batch of raw GraphQL requests for finer-grained auth. (#2666)