diff --git a/rootfs/etc/nginx/template/nginx.tmpl b/rootfs/etc/nginx/template/nginx.tmpl index 6b8e750b06..e314569804 100644 --- a/rootfs/etc/nginx/template/nginx.tmpl +++ b/rootfs/etc/nginx/template/nginx.tmpl @@ -1104,7 +1104,7 @@ stream { modsecurity off; {{ end }} - return 302 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }}; + return 307 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }}; } {{ end }} {{ end }} diff --git a/test/e2e/annotations/authtls.go b/test/e2e/annotations/authtls.go index 3315065f1c..e299feb632 100644 --- a/test/e2e/annotations/authtls.go +++ b/test/e2e/annotations/authtls.go @@ -148,7 +148,7 @@ var _ = framework.DescribeAnnotation("auth-tls-*", func() { WithURL(f.GetURL(framework.HTTPS)). WithHeader("Host", host). Expect(). - Status(http.StatusFound). + Status(http.StatusTemporaryRedirect). Header("Location").Equal(f.GetURL(framework.HTTP) + errorPath) // Send Request Passing the Client Certs