1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-25 00:47:17 +02:00
Commit Graph

9 Commits

Author SHA1 Message Date
c7bfbdecef Implement graceful shutdown and propagate request context (#468)
* feature: Implement graceful shutdown

Propagate the request context to the Redis client.
It is possible to propagate a context cancel to Redis client if the connection is closed by the HTTP client.
The redis.Cmdable cannot use WithContext, so added the Client interface to handle redis.Client and redis.ClusterClient transparently.

Added handling of Unix signals to http server.

Upgrade go-redis/redis to v7.

* Update dependencies

- Upgrade golang/x/* and google-api-go
- Migrate fsnotify import from gopkg.in to github.com
- Replace bmizerany/assert with stretchr/testify/assert

* add doc for  wrapper interface

* Update CHANGELOG.md

* fix: upgrade fsnotify to v1.4.9

* fix: remove unnessary logging

* fix: wait until  all connections have been closed

* refactor: move chan to main for testing

* add assert to check if stop chan is empty

* add an idiomatic for sync.WaitGroup with timeout
2020-04-04 16:12:38 +01:00
bed0336608 Add SSL check and test no redirect when HTTPS
Signed-off-by: Josh Michielsen <github@mickey.dev>
2019-10-17 22:04:24 +01:00
271efe776e Added tests
Signed-off-by: Josh Michielsen <github@mickey.dev>
2019-10-17 16:37:36 +01:00
d24aacdb5c Fix lint errors 2019-06-23 21:39:13 +01:00
d44f58f0e2 found another edge case to test 2019-03-25 10:47:30 -07:00
ff4e5588d8 incorporate suggestions from @benfdking 2019-03-25 10:32:29 -07:00
1ff17a3fa1 travis ci tests had a temporary failure, so this is to get it to retest 2019-03-25 10:10:07 -07:00
e2755624ec made gcp healthcheck test better 2019-03-25 10:03:22 -07:00
3d22a11658 added better tests for gcp healthcheck stuff 2019-03-25 09:56:56 -07:00