[#5074] redirect with 303 in case of a POST OAuth2 callback

This commit is contained in:
Gani Georgiev committed 2024-06-18 12:10:12 +03:00
1 parent d417b86fc0
commit af9cf33553
2 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -1714,7 +1714,7 @@ func TestRecordAuthOAuth2Redirect(t *testing.T) {
BeforeTestFunc: beforeTestFunc(clientStubs[7], map[string][]string{
"c3": {`"state":"` + clientStubs[7]["c3"].Id(), `"code":"123"`},
}),
ExpectedStatus: http.StatusTemporaryRedirect,
ExpectedStatus: http.StatusSeeOther,
AfterTestFunc: func(t *testing.T, app *tests.TestApp, res *http.Response) {
app.Store().Get("cancelFunc").(context.CancelFunc)()