graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Server.Auth.WebHook

Synopsis

Documentation

data AuthHook Source #

Constructors

AuthHook 

Fields

Instances

Instances details
Eq AuthHook Source # 
Instance details

Defined in Hasura.Server.Auth.WebHook

Show AuthHook Source # 
Instance details

Defined in Hasura.Server.Auth.WebHook

hookMethod :: AuthHook -> StdMethod Source #

userInfoFromAuthHook :: forall m. (MonadIO m, MonadBaseControl IO m, MonadError QErr m, MonadTrace 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)

mkUserInfoFromResp :: (MonadIO m, MonadError QErr m) => Logger Hasura -> Text -> StdMethod -> Status -> ByteString -> [Header] -> m (UserInfo, Maybe UTCTime, [Header]) Source #