pomerium/internal/middleware
Bobby DeSimone bade9f50e6
internal/httputil: use error structs for http errors (#159)
The existing implementation used a ErrorResponse method to propogate
and create http error messages. Since we added functionality to
troubleshoot, signout, and do other tasks following an http error
it's useful to use Error struct in place of method arguments.

This fixes #157 where a troubleshooting links were appearing on pages
that it didn't make sense on (e.g. pages without valid sessions).
2019-06-03 20:00:37 -07:00
..
chain.go proxy: add JWT request signing support (#19) 2019-01-22 21:44:22 -08:00
chain_test.go authorize: add authorization (#59) 2019-03-07 12:47:07 -08:00
doc.go authenticate: refactor middleware, logging, and tests (#30) 2019-01-25 20:58:50 -08:00
grpc.go authenticate: use gRPC for service endpoints (#39) 2019-02-08 10:10:38 -08:00
middleware.go internal/httputil: use error structs for http errors (#159) 2019-06-03 20:00:37 -07:00
middleware_test.go internal/httputil: use error structs for http errors (#159) 2019-06-03 20:00:37 -07:00