diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/ClientForm.types.ts b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/ClientForm.types.ts
index fed0a06e9a..7213b6758e 100644
--- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/ClientForm.types.ts
+++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/ClientForm.types.ts
@@ -5,6 +5,7 @@ import {
IClientReqDTO,
IScope,
} from "@docspace/common/utils/oauth/interfaces";
+//@ts-ignore
import { DeviceUnionType } from "SRC_DIR/Hooks/useViewEffect";
export interface InputProps {
diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/OAuthBlock.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/OAuthBlock.tsx
index 4e29a899f2..2d8e188654 100644
--- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/OAuthBlock.tsx
+++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/OAuthBlock.tsx
@@ -8,7 +8,7 @@ interface OAuthBlockProps {
t: any;
redirectUrisValue: string[];
- allowedOriginsValue: string[];
+ // allowedOriginsValue: string[];
changeValue: (name: string, value: string) => void;
@@ -18,7 +18,7 @@ interface OAuthBlockProps {
const OAuthBlock = ({
t,
redirectUrisValue,
- allowedOriginsValue,
+ // allowedOriginsValue,
changeValue,
@@ -37,7 +37,7 @@ const OAuthBlock = ({
helpButtonText={t("RedirectsURLSHelpButton")}
isDisabled={isEdit}
/>
-
+ /> */}
);
diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx
index d4e1f73b0c..06573b2297 100644
--- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx
+++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx
@@ -53,7 +53,7 @@ const ClientForm = ({
description: "",
redirect_uris: [],
- allowed_origins: [],
+ // allowed_origins: [],
logout_redirect_uri: "",
terms_url: "",
@@ -142,8 +142,8 @@ const ClientForm = ({
redirect_uris:
fetchedClient?.redirectUris || client?.redirectUris || [],
- allowed_origins:
- fetchedClient?.allowedOrigins || client?.allowedOrigins || [],
+ // allowed_origins:
+ // fetchedClient?.allowedOrigins || client?.allowedOrigins || [],
logout_redirect_uri:
fetchedClient?.logoutRedirectUri || client?.logoutRedirectUri || "",
@@ -207,10 +207,10 @@ const ClientForm = ({
isValid = isValid && form[key].length > 0;
break;
- case "allowed_origins":
- isValid = isValid && form[key].length > 0;
+ // case "allowed_origins":
+ // isValid = isValid && form[key].length > 0;
- break;
+ // break;
case "logout_redirect_uris":
isValid = isValid;
@@ -264,7 +264,7 @@ const ClientForm = ({
diff --git a/packages/common/utils/oauth/index.ts b/packages/common/utils/oauth/index.ts
index e265fa25e3..3619da22b6 100644
--- a/packages/common/utils/oauth/index.ts
+++ b/packages/common/utils/oauth/index.ts
@@ -30,7 +30,7 @@ export const transformToClientProps = (
modified_by,
modified_on,
website_url,
- allowed_origins,
+ // allowed_origins,
creator_avatar,
creator_display_name,
} = clientDto;
@@ -55,7 +55,7 @@ export const transformToClientProps = (
modifiedBy: modified_by,
modifiedOn: modified_on,
websiteUrl: website_url,
- allowedOrigins: allowed_origins,
+ // allowedOrigins: allowed_origins,
creatorAvatar: creator_avatar,
creatorDisplayName: creator_display_name,
};
@@ -77,7 +77,7 @@ export const transformToClientReqDTO = (
logoutRedirectUri: logout_redirect_uri,
scopes,
websiteUrl,
- allowedOrigins,
+ // allowedOrigins,
} = clientProps;
const client: IClientReqDTO = {
@@ -92,7 +92,7 @@ export const transformToClientReqDTO = (
scopes,
authentication_method: authenticationMethod,
website_url: websiteUrl,
- allowed_origins: allowedOrigins,
+ // allowed_origins: allowedOrigins,
};
return client;
diff --git a/packages/common/utils/oauth/interfaces.ts b/packages/common/utils/oauth/interfaces.ts
index f28059afa6..837b050a7b 100644
--- a/packages/common/utils/oauth/interfaces.ts
+++ b/packages/common/utils/oauth/interfaces.ts
@@ -41,7 +41,7 @@ export interface IClientProps {
invalidated: boolean;
scopes: string[];
websiteUrl: string;
- allowedOrigins: string[];
+ // allowedOrigins: string[];
createdOn?: Date;
modifiedOn?: Date;
@@ -62,7 +62,7 @@ export interface IClientReqDTO {
logout_redirect_uri: string;
scopes: string[];
website_url: string;
- allowed_origins: string[];
+ // allowed_origins: string[];
}
export interface IClientResDTO {
@@ -87,7 +87,7 @@ export interface IClientResDTO {
tenant: number;
invalidated: boolean;
website_url: string;
- allowed_origins: string[];
+ // allowed_origins: string[];
created_on?: Date;
modified_on?: Date;