diff --git a/features/admin.extensions.v1/components/identity-providers/constants/swe-constants.ts b/features/admin.connections.v1/constants/siwe-constants.ts similarity index 94% rename from features/admin.extensions.v1/components/identity-providers/constants/swe-constants.ts rename to features/admin.connections.v1/constants/siwe-constants.ts index 47a4e996a68..05a5ab848b6 100644 --- a/features/admin.extensions.v1/components/identity-providers/constants/swe-constants.ts +++ b/features/admin.connections.v1/constants/siwe-constants.ts @@ -19,18 +19,15 @@ /** * Class containing Sign In With Ethereum IDP constants. */ -export class SIWEConstants { +class SIWEConstants { + /** + * Private constructor to avoid object instantiation from outside the class. + */ + private constructor() {} public static readonly SIWE_REGISTRATION_INVALID_STATUS_CODE_ERROR_CODE: string = "ASG-CON-SIWE-00001"; public static readonly SIWE_REGISTRATION_ERROR_CODE: string = "ASG-CON-SIWE-00002"; - /** - * Private constructor to avoid object instantiation from outside - * the class. - * -] */ - private constructor() { } - public static readonly SIWE_CLIENT_REGISTRATION_DOCS_URL: string = "https://docs.login.xyz/servers/" + "oidc-provider/hosted-oidc-provider#openid-connect-client-registration"; @@ -52,5 +49,7 @@ export class SIWEConstants { CALLBACK_URL: "callbackUrl", CLIENT_ID: "ClientId", CLIENT_SECRET: "ClientSecret" - } + }; } + +export default SIWEConstants; diff --git a/features/admin.extensions.v1/components/identity-providers/models/swe.ts b/features/admin.connections.v1/models/siwe.ts similarity index 100% rename from features/admin.extensions.v1/components/identity-providers/models/swe.ts rename to features/admin.connections.v1/models/siwe.ts diff --git a/features/admin.extensions.v1/components/identity-providers/constants/index.ts b/features/admin.extensions.v1/components/identity-providers/constants/index.ts deleted file mode 100644 index 9f2631409f6..00000000000 --- a/features/admin.extensions.v1/components/identity-providers/constants/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./swe-constants"; diff --git a/features/admin.extensions.v1/components/identity-providers/models/index.ts b/features/admin.extensions.v1/components/identity-providers/models/index.ts deleted file mode 100644 index 1e2d41bd343..00000000000 --- a/features/admin.extensions.v1/components/identity-providers/models/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved. - * - * WSO2 LLC. licenses this file to you under the Apache License, - * Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -export * from "./swe"; -export * from "@wso2is/admin.sms-providers.v1/models/sms-otp"; diff --git a/features/admin.extensions.v1/identity-provider-templates/templates/swe/swe-authenticator-form.tsx b/features/admin.extensions.v1/identity-provider-templates/templates/swe/swe-authenticator-form.tsx index 9f61936fe88..e89ce5ea9d4 100644 --- a/features/admin.extensions.v1/identity-provider-templates/templates/swe/swe-authenticator-form.tsx +++ b/features/admin.extensions.v1/identity-provider-templates/templates/swe/swe-authenticator-form.tsx @@ -17,6 +17,7 @@ */ import { ConnectionUIConstants } from "@wso2is/admin.connections.v1/constants/connection-ui-constants"; +import SIWEConstants from "@wso2is/admin.connections.v1/constants/siwe-constants"; import { CommonAuthenticatorFormFieldInterface, CommonAuthenticatorFormFieldMetaInterface, @@ -32,7 +33,6 @@ import isEmpty from "lodash-es/isEmpty"; import React, { FunctionComponent, ReactElement, ReactNode, useEffect, useState } from "react"; import { Trans, useTranslation } from "react-i18next"; import { Icon, SemanticICONS } from "semantic-ui-react"; -import { SIWEConstants } from "../../../components/identity-providers/constants"; /** * Interface for SIWE Authenticator Settings Form props.