Skip to content

Commit

Permalink
Merge pull request #7624 from Shenali-SJ/rename-custom-authentication
Browse files Browse the repository at this point in the history
Rename all string occurrences from 'custom-authentication' to 'custom-authenticator' for consistency
  • Loading branch information
malithie authored Feb 15, 2025
2 parents c19d613 + 66cf6cc commit 46c2dfd
Show file tree
Hide file tree
Showing 28 changed files with 193 additions and 186 deletions.
7 changes: 7 additions & 0 deletions .changeset/quiet-mails-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wso2is/admin.connections.v1": patch
"@wso2is/admin.core.v1": patch
"@wso2is/i18n": patch
---

Rename all string occurrences from "authentication" to "authenticator" for consistency
12 changes: 6 additions & 6 deletions features/admin.connections.v1/api/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const createConnection = (
*
* @param connection - Connection settings data.
*/
export const createCustomAuthentication = (
export const createCustomAuthenticator = (
connection: CustomAuthConnectionInterface
): Promise<AxiosResponse<CustomAuthConnectionInterface>> => {

Expand Down Expand Up @@ -121,10 +121,10 @@ export const createCustomAuthentication = (
/**
* Function to update custom local authenticator.
*
* @param id - ID of the custom authentication.
* @param id - ID of the custom authenticator.
* @param connection - Connection settings data.
*/
export const updateCustomAuthentication = (
export const updateCustomAuthenticator = (
id: string,
connection: CustomAuthConnectionInterface
): Promise<AxiosResponse<CustomAuthConnectionInterface>> => {
Expand Down Expand Up @@ -152,11 +152,11 @@ export const updateCustomAuthentication = (
};

/**
* Function to delete a custom authentication.
* Function to delete a custom authenticator.
*
* @param id - ID of the custom authentication
* @param id - ID of the custom authenticator.
*/
export const deleteCustomAuthentication = (
export const deleteCustomAuthenticator = (
id: string
): Promise<AxiosResponse<CustomAuthConnectionInterface>> => {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const useGetConnectionTemplates = <Data = ConnectionTemplateInterface[],
CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS
.ORGANIZATION_ENTERPRISE_IDP,
CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS.ENTERPRISE,
CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS.CUSTOM_AUTHENTICATION,
CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS.CUSTOM_AUTHENTICATOR,
...(UIConfig?.hiddenConnectionTemplates || [])
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import { useDispatch, useSelector } from "react-redux";
import { Dispatch } from "redux";
import {
deleteConnection,
deleteCustomAuthentication,
deleteCustomAuthenticator,
getConnectedApps
} from "../api/connections";
import { useGetAuthenticatorConnectedApps } from "../api/use-get-authenticator-connected-apps";
Expand Down Expand Up @@ -394,7 +394,7 @@ export const AuthenticatorGrid: FunctionComponent<AuthenticatorGridPropsInterfac
if(connectionType === ConnectionTypes.IDVP) {
deleteAuthenticator = deleteIdentityVerificationProvider;
} else if (ConnectionsManagementUtils.IsCustomLocalAuthenticator(deletingIDP)) {
deleteAuthenticator = deleteCustomAuthentication;
deleteAuthenticator = deleteCustomAuthenticator;
} else {
deleteAuthenticator = deleteConnection;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import React, { FC, ReactElement, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useSelector } from "react-redux";
import { CreateConnectionWizard } from "./add-connection-wizard";
import CustomAuthenticationCreateWizard from "./custom-authentication-create-wizard";
import CustomAuthenticatorCreateWizard from "./custom-authenticator-create-wizard";
import { EnterpriseConnectionCreateWizard } from "./enterprise-connection-create-wizard";
import { useGetConnectionTemplate, useGetConnections } from "../../api/connections";
import { CommonAuthenticatorConstants } from "../../constants/common-authenticator-constants";
Expand Down Expand Up @@ -160,7 +160,7 @@ export const AuthenticatorCreateWizardFactory: FC<AuthenticatorCreateWizardFacto

if (type === "enterprise-protocols") {
setSelectedTemplate(parentSelectedTemplate);
} else if (type === "custom-authentication") {
} else if (type === "custom-authenticator") {
setSelectedTemplate(parentSelectedTemplate);
} else {
if (!connectionTemplate) {
Expand Down Expand Up @@ -315,11 +315,11 @@ export const AuthenticatorCreateWizardFactory: FC<AuthenticatorCreateWizardFacto
/>
);

case CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS.CUSTOM_AUTHENTICATION:
case CommonAuthenticatorConstants.CONNECTION_TEMPLATE_IDS.CUSTOM_AUTHENTICATOR:
return (
<CustomAuthenticationCreateWizard
title={ t("customAuthentication:fields.createWizard.title") }
subTitle={ t("customAuthentication:fields.createWizard.subTitle") }
<CustomAuthenticatorCreateWizard
title={ t("customAuthenticator:fields.createWizard.title") }
subTitle={ t("customAuthenticator:fields.createWizard.subTitle") }
onWizardClose={ () => {
setSelectedTemplateWithUniqueName(undefined);
setSelectedTemplate(undefined);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* under the License.
*/

.custom-authentication-create-wizard {
.custom-authenticator-create-wizard {
.wizard-wrapper {
.wizard-container {
margin-top: 0px;
Expand Down
Loading

0 comments on commit 46c2dfd

Please sign in to comment.