From 3e60e682d16e599e671f9f6262a4ceac044e96f7 Mon Sep 17 00:00:00 2001 From: NFish Date: Wed, 18 Jun 2025 11:25:45 +0800 Subject: [PATCH] Fix/webapp auth failed (#21149) --- web/app/components/app/app-publisher/index.tsx | 8 ++++---- web/app/signin/components/sso-auth.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index 7f1dcdf6f8..d6e316f0d3 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -289,10 +289,10 @@ const AppPublisher = ({ {!isAppAccessSet &&

{t('app.publishApp.notSetDesc')}

}
- + } > @@ -301,10 +301,10 @@ const AppPublisher = ({ {(appDetail?.mode === 'workflow' || appDetail?.mode === 'completion') ? ( - + } > diff --git a/web/app/signin/components/sso-auth.tsx b/web/app/signin/components/sso-auth.tsx index fb303b93e2..6a248fc2d2 100644 --- a/web/app/signin/components/sso-auth.tsx +++ b/web/app/signin/components/sso-auth.tsx @@ -34,7 +34,7 @@ const SSOAuth: FC = ({ } else if (protocol === SSOProtocol.OIDC) { getUserOIDCSSOUrl(invite_token).then((res) => { - document.cookie = `user-oidc-state=${res.state}` + document.cookie = `user-oidc-state=${res.state};Path=/` router.push(res.url) }).finally(() => { setIsLoading(false) @@ -42,7 +42,7 @@ const SSOAuth: FC = ({ } else if (protocol === SSOProtocol.OAuth2) { getUserOAuth2SSOUrl(invite_token).then((res) => { - document.cookie = `user-oauth2-state=${res.state}` + document.cookie = `user-oauth2-state=${res.state};Path=/` router.push(res.url) }).finally(() => { setIsLoading(false)