Change oauth redirect to 307
This commit is contained in:
parent
69fd353086
commit
efd71e75a8
3 changed files with 5 additions and 5 deletions
|
@ -1104,7 +1104,7 @@ stream {
|
||||||
modsecurity off;
|
modsecurity off;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
return 302 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }};
|
return 307 {{ buildAuthSignURL $externalAuth.SigninURL $externalAuth.SigninURLRedirectParam }};
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -494,7 +494,7 @@ http {
|
||||||
WithQuery("a", "b").
|
WithQuery("a", "b").
|
||||||
WithQuery("c", "d").
|
WithQuery("c", "d").
|
||||||
Expect().
|
Expect().
|
||||||
Status(http.StatusFound).
|
Status(http.StatusTemporaryRedirect).
|
||||||
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -714,7 +714,7 @@ http {
|
||||||
WithQuery("a", "b").
|
WithQuery("a", "b").
|
||||||
WithQuery("c", "d").
|
WithQuery("c", "d").
|
||||||
Expect().
|
Expect().
|
||||||
Status(http.StatusFound).
|
Status(http.StatusTemporaryRedirect).
|
||||||
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?orig=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?orig=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -861,7 +861,7 @@ http {
|
||||||
WithQuery("a", "b").
|
WithQuery("a", "b").
|
||||||
WithQuery("c", "d").
|
WithQuery("c", "d").
|
||||||
Expect().
|
Expect().
|
||||||
Status(http.StatusFound).
|
Status(http.StatusTemporaryRedirect).
|
||||||
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", thisHost, thisHost, url.QueryEscape("/?a=b&c=d")))
|
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", thisHost, thisHost, url.QueryEscape("/?a=b&c=d")))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -121,7 +121,7 @@ var _ = framework.DescribeAnnotation("satisfy", func() {
|
||||||
WithQuery("a", "b").
|
WithQuery("a", "b").
|
||||||
WithQuery("c", "d").
|
WithQuery("c", "d").
|
||||||
Expect().
|
Expect().
|
||||||
Status(http.StatusFound).
|
Status(http.StatusTemporaryRedirect).
|
||||||
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
Header("Location").Equal(fmt.Sprintf("http://%s/auth/start?rd=http://%s%s", host, host, url.QueryEscape("/?a=b&c=d")))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue