mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-16 04:29:15 +00:00
0.7.10 (#80)
* Add ability to disable replay protection. - This is useful for runs with multiple traefik replicas to avoid false positives and tokens re-creation. * Enhance the CI/CD pipelines * Increase test coverage. * Update vendored dependencies. * Update behaviour on forceHTTPS as per issue #82
This commit is contained in:
@@ -179,8 +179,8 @@ func (m *AuthMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
case <-req.Context().Done():
|
||||
m.logger.Debug("Request cancelled while waiting for OIDC initialization")
|
||||
m.sendErrorResponseFunc(rw, req, "Request cancelled", http.StatusRequestTimeout)
|
||||
m.logger.Debug("Request canceled while waiting for OIDC initialization")
|
||||
m.sendErrorResponseFunc(rw, req, "Request canceled", http.StatusRequestTimeout)
|
||||
return
|
||||
case <-time.After(30 * time.Second):
|
||||
m.logger.Error("Timeout waiting for OIDC initialization")
|
||||
|
||||
@@ -301,7 +301,7 @@ func TestServeHTTP_ComprehensiveCoverage(t *testing.T) {
|
||||
|
||||
rw := httptest.NewRecorder()
|
||||
|
||||
// This should timeout or be cancelled
|
||||
// This should timeout or be canceled
|
||||
m.ServeHTTP(rw, req)
|
||||
|
||||
if !errorResponseSent {
|
||||
|
||||
Reference in New Issue
Block a user