Skip to content

Commit

Permalink
Refactor SIWE related files
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Sep 11, 2024
1 parent 2bccd03 commit cb3df77
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -52,5 +49,7 @@ export class SIWEConstants {
CALLBACK_URL: "callbackUrl",
CLIENT_ID: "ClientId",
CLIENT_SECRET: "ClientSecret"
}
};
}

export default SIWEConstants;
File renamed without changes.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand Down

0 comments on commit cb3df77

Please sign in to comment.