From d570828e476a75f3927a05f739f3b518918906a0 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Tue, 17 Oct 2023 12:13:54 +0100 Subject: [PATCH] Update path and callbackURL for samlConfig --- backend/src/utils/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/utils/auth.ts b/backend/src/utils/auth.ts index 6f46824d4..ad1ed0961 100644 --- a/backend/src/utils/auth.ts +++ b/backend/src/utils/auth.ts @@ -301,8 +301,8 @@ const initializePassport = async () => { } const samlConfig: ISAMLConfig = ({ - path: `${await getSiteURL()}/api/v1/sso/saml2/${ssoIdentifier}`, - callbackURL: `${await getSiteURL()}/api/v1/sso/saml2${ssoIdentifier}`, + path: `/api/v1/sso/saml2/${ssoIdentifier}`, + callbackURL: `/api/v1/sso/saml2${ssoIdentifier}`, entryPoint: ssoConfig.entryPoint, issuer: ssoConfig.issuer, cert: ssoConfig.cert,