Skip to content

Commit

Permalink
Change oauth redirect to 307
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0tonic committed Jan 9, 2025
1 parent 69fd353 commit cc69216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ stream {
modsecurity off;
{{ end }}

return 302 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }};
return 307 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }};
}
{{ end }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/annotations/authtls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc69216

Please sign in to comment.