graphql-engine/server
Antoine Leblanc 5b54f9d766
server: add support for webhook connection expiration (#4196)
* add expiry time to webhook user info

This also adds an optional message to webhook errors: if we fail to
parse an expiry time, we will log a warning with the parse error.

* refactored Auth

This change had one main goal: put in common all expiry time
extraction code between the JWT and WebHook parts of the
code. Furthermore, this change also moves all WebHook specific code to
its own module, similarly to what is done for JWT.

* Remove dependency on string-conversions in favor of text-conversions

string-conversions silently uses UTF8 instead of being explicit about
it, and it uses lenientDecode when decoding ByteStrings when it’s
usually better to reject invalid UTF8 input outright. text-conversions
solves both those problems.

Co-authored-by: Alexis King <lexi.lambda@gmail.com>
2020-04-02 19:00:13 -05:00
..
packaging Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
src-bench-cache Initial benchmarks for caching. Closes #3530 2019-12-20 10:10:07 -06:00
src-exec Add downgrade command (close #1156) (#3760) 2020-02-07 16:33:12 +05:30
src-lib server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00
src-rsr update manifests to v1.1.1 (#4220) 2020-03-28 16:45:43 +05:30
src-test option to reload remote schemas in 'reload metadata' (fix #3792, #4117) (#4141) 2020-03-26 17:22:20 +05:30
tests-py server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
.stylish-haskell.yaml Refactor schema cache construction to avoid imperative updates 2020-01-08 16:43:06 -06:00
cabal.project Allow field names to start with reserved keywords (fix #3597) (#3927) 2020-04-02 00:27:43 -05:00
cabal.project.ci Switch from stack to cabal-install for building server code (close #3280) (#3558) 2020-01-17 16:07:15 -06:00
cabal.project.dev More comments in cabal.project files 2020-01-23 18:20:58 -05:00
cabal.project.dev-sh dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.freeze dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.dev-sh.local dev.sh: restore code coverage functionality 2020-01-23 18:35:18 -05:00
cabal.project.freeze server: prevent metadata checks in read-only mode (#4250) 2020-04-01 18:22:55 -05:00
CONTRIBUTING.md server: add missing mention of postgis to CONTRIBUTING.md (#4156) 2020-03-23 20:46:09 -05:00
graphql-engine.cabal server: add support for webhook connection expiration (#4196) 2020-04-02 19:00:13 -05:00
Makefile persist mix files only when coverage is enabled (#3844) 2020-02-06 20:09:52 -06:00
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30