graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Server.Auth.WebHook

Synopsis

Documentation

data AuthHook Source #

Constructors

AuthHook 

Fields

Instances

Instances details
Show AuthHook Source # 
Instance details

Defined in Hasura.Server.Auth.WebHook

Eq AuthHook Source # 
Instance details

Defined in Hasura.Server.Auth.WebHook

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)