1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-11-24 08:52:25 +02:00
oauth2-proxy/pkg/middleware
Nick Meves 602dac7852
Move Logging to Middleware Package (#1070)
* Use a specialized ResponseWriter in middleware

* Track User & Upstream in RequestScope

* Wrap responses in our custom ResponseWriter

* Add tests for logging middleware

* Inject upstream metadata into request scope

* Use custom ResponseWriter only in logging middleware

* Assume RequestScope is never nil
2021-03-06 17:27:16 +00:00
..
testdata/metrics Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
basic_session_test.go Add support for setting groups on session when using basic auth (#1064) 2021-02-25 13:02:23 -08:00
basic_session.go Add support for setting groups on session when using basic auth (#1064) 2021-02-25 13:02:23 -08:00
headers_test.go Flatten array-based response headers 2021-02-03 16:48:26 -08:00
headers.go Flatten array-based response headers 2021-02-03 16:48:26 -08:00
healthcheck_test.go (#649) Remove blank helthcheck user agents and paths when setting up the healthcheck middleware 2020-07-06 14:07:38 +12:00
healthcheck.go (#649) Remove blank helthcheck user agents and paths when setting up the healthcheck middleware 2020-07-06 14:07:38 +12:00
jwt_session_test.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
jwt_session.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
metrics_test.go Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
metrics.go Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
middleware_suite_test.go Move Logging to Middleware Package (#1070) 2021-03-06 17:27:16 +00:00
redirect_to_https_test.go Make HTTPS Redirect middleware Reverse Proxy aware 2021-01-16 13:55:48 -08:00
redirect_to_https.go Make HTTPS Redirect middleware Reverse Proxy aware 2021-01-16 13:55:48 -08:00
request_logger_test.go Move Logging to Middleware Package (#1070) 2021-03-06 17:27:16 +00:00
request_logger.go Move Logging to Middleware Package (#1070) 2021-03-06 17:27:16 +00:00
scope_test.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
scope.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
session_utils_test.go Add Basic Auth session loader middleware 2020-07-19 17:21:42 +01:00
session_utils.go Add Basic Auth session loader middleware 2020-07-19 17:21:42 +01:00
stored_session_test.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
stored_session.go Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00