Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data JwkFetchError
- = JFEHttpException !HttpException !Text
- | JFEHttpError !URI !Status !ByteString !Text
- | JFEJwkParseError !Text !Text
- | JFEExpiryParseError !(Maybe Text) Text
- data JwkRefreshLog = JwkRefreshLog {
- jrlLogLevel :: !LogLevel
- jrlMessage :: !(Maybe Text)
- jrlError :: !(Maybe JwkFetchError)
Documentation
data JwkFetchError Source #
Possible errors during fetching and parsing JWK
(the Text
type at the end is a friendly error message)
JFEHttpException !HttpException !Text | Exception while making the HTTP request |
JFEHttpError !URI !Status !ByteString !Text | Non-2xx HTTP errors from the upstream server |
JFEJwkParseError !Text !Text | Error parsing the JWK response itself |
JFEExpiryParseError !(Maybe Text) Text | Error parsing the expiry of the JWK |
Instances
Show JwkFetchError Source # | |
Defined in Hasura.Server.Auth.JWT.Logging showsPrec :: Int -> JwkFetchError -> ShowS # show :: JwkFetchError -> String # showList :: [JwkFetchError] -> ShowS # | |
ToJSON JwkFetchError Source # | |
Defined in Hasura.Server.Auth.JWT.Logging toJSON :: JwkFetchError -> Value toEncoding :: JwkFetchError -> Encoding toJSONList :: [JwkFetchError] -> Value toEncodingList :: [JwkFetchError] -> Encoding |
data JwkRefreshLog Source #
JwkRefreshLog | |
|
Instances
Show JwkRefreshLog Source # | |
Defined in Hasura.Server.Auth.JWT.Logging showsPrec :: Int -> JwkRefreshLog -> ShowS # show :: JwkRefreshLog -> String # showList :: [JwkRefreshLog] -> ShowS # | |
ToJSON JwkRefreshLog Source # | |
Defined in Hasura.Server.Auth.JWT.Logging toJSON :: JwkRefreshLog -> Value toEncoding :: JwkRefreshLog -> Encoding toJSONList :: [JwkRefreshLog] -> Value toEncodingList :: [JwkRefreshLog] -> Encoding | |
ToEngineLog JwkRefreshLog Hasura Source # | |
Defined in Hasura.Server.Auth.JWT.Logging toEngineLog :: JwkRefreshLog -> (LogLevel, EngineLogType Hasura, Value) Source # |