pomerium/internal/httputil
Bobby DeSimone dc12947241
all: refactor handler logic
- all: prefer `FormValues` to `ParseForm` with subsequent `Form.Get`s
- all: refactor authentication stack to be checked by middleware, and accessible via request context.
- all: replace http.ServeMux with gorilla/mux’s router
- all: replace custom CSRF checks with gorilla/csrf middleware
- authenticate: extract callback path as constant.
- internal/config: implement stringer interface for policy
- internal/cryptutil: add helper func `NewBase64Key`
- internal/cryptutil: rename `GenerateKey` to `NewKey`
- internal/cryptutil: rename `GenerateRandomString` to `NewRandomStringN`
- internal/middleware: removed alice in favor of gorilla/mux
- internal/sessions: remove unused `ValidateRedirectURI` and `ValidateClientSecret`
- internal/sessions: replace custom CSRF with gorilla/csrf fork that supports custom handler protection
- internal/urlutil: add `SignedRedirectURL` to create hmac'd URLs
- internal/urlutil: add `ValidateURL` helper to parse URL options
- internal/urlutil: add `GetAbsoluteURL` which takes a request and returns its absolute URL.
- proxy: remove holdover state verification checks; we no longer are setting sessions in any proxy routes so we don’t need them.
- proxy: replace un-named http.ServeMux with named domain routes.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-16 18:01:14 -07:00
..
test_data telemetry: add tracing 2019-07-24 09:20:16 -07:00
client.go development: use golangci-lint 2019-07-13 18:28:51 -07:00
errors.go authenticate: make service http only 2019-09-04 16:27:08 -07:00
errors_test.go httputil: use http error wrapper 2019-08-24 09:15:07 -07:00
http.go telemetry: add tracing 2019-07-24 09:20:16 -07:00
http_test.go telemetry: add tracing 2019-07-24 09:20:16 -07:00
options.go config: remove references to named ports 2019-08-15 09:06:53 -07:00
router.go all: refactor handler logic 2019-09-16 18:01:14 -07:00
router_test.go all: refactor handler logic 2019-09-16 18:01:14 -07:00
tls.go proxy: enable client certificate in transport 2019-08-12 15:08:18 -07:00
tls_test.go telemetry: add tracing 2019-07-24 09:20:16 -07:00