1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-10 04:18:14 +02:00
oauth2-proxy/providers
Mitsuo Heijo 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
..
auth_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
azure_test.go Cleaned up source to make golangci-lint pass (#418) 2020-03-14 09:58:29 +00:00
azure.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
bitbucket_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
bitbucket.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
digitalocean_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
digitalocean.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
facebook.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
github_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
github.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
gitlab_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
gitlab.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
google_test.go Support for client secret file. (#355) 2020-02-15 13:44:39 +00:00
google.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
internal_util_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
internal_util.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
keycloak_test.go Implement graceful shutdown and propagate request context (#468) 2020-04-04 16:12:38 +01:00
keycloak.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
linkedin_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
linkedin.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
logingov_test.go add login.gov provider (#55) 2019-03-20 13:44:51 +00:00
logingov.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
nextcloud_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
nextcloud.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
oidc_test.go Implement graceful shutdown and propagate request context (#468) 2020-04-04 16:12:38 +01:00
oidc.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
provider_data.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
provider_default_test.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
provider_default.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00
providers.go Migrate to oauth2-proxy/oauth2-proxy 2020-03-29 15:40:10 +01:00