From 2204530dec94bdb65698bbfdc759db300c0ec0ab Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Sat, 5 Mar 2022 10:31:06 +0800 Subject: [PATCH] fix: disable cache for oidc auth callback --- pkg/apigateway/handler/oidc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apigateway/handler/oidc.go b/pkg/apigateway/handler/oidc.go index 79146b8a52..d00d5c9223 100644 --- a/pkg/apigateway/handler/oidc.go +++ b/pkg/apigateway/handler/oidc.go @@ -100,6 +100,7 @@ func handleOIDCAuth(ctx context.Context, w http.ResponseWriter, req *http.Reques qs.Set("code", jsonutils.NewString(code)) qs.Set("state", jsonutils.NewString(auth.State)) redirUrl := addQuery(auth.RedirectUri, qs) + appsrv.DisableClientCache(w) appsrv.SendRedirect(w, redirUrl) }