mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-22 22:10:43 +02:00
[#5074] redirect with 303 in case of a POST OAuth2 callback
This commit is contained in:
1 parent
d417b86fc0
commit
af9cf33553
2 files changed
+12
-7
No files matched your search
@@ -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)()
|
||||
|
||||
|
||||
Reference in new issue
Block a user