From 58bb84bcb8ec01f2ff7a0ee66d9fae9ce839864c Mon Sep 17 00:00:00 2001 From: Thomas Newman Date: Mon, 26 Aug 2024 09:01:01 -0400 Subject: [PATCH] Fixed Linter errors --- frontend/src/widgets/ClusterConfigForm/utils/getJaasConfig.ts | 3 ++- .../ClusterConfigForm/utils/transformFormDataToPayload.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/widgets/ClusterConfigForm/utils/getJaasConfig.ts b/frontend/src/widgets/ClusterConfigForm/utils/getJaasConfig.ts index e341212fc..0a9b914ea 100644 --- a/frontend/src/widgets/ClusterConfigForm/utils/getJaasConfig.ts +++ b/frontend/src/widgets/ClusterConfigForm/utils/getJaasConfig.ts @@ -9,7 +9,8 @@ const JAAS_CONFIGS = { 'org.apache.kafka.common.security.scram.ScramLoginModule', 'SASL/LDAP': 'org.apache.kafka.common.security.plain.PlainLoginModule', 'SASL/AWS IAM': 'software.amazon.msk.auth.iam.IAMLoginModule', - 'SASL/Azure Entra': 'org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule', + 'SASL/Azure Entra': + 'org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule', }; type MethodName = keyof typeof JAAS_CONFIGS; diff --git a/frontend/src/widgets/ClusterConfigForm/utils/transformFormDataToPayload.ts b/frontend/src/widgets/ClusterConfigForm/utils/transformFormDataToPayload.ts index 8fcb2ebbc..fdc9d740e 100644 --- a/frontend/src/widgets/ClusterConfigForm/utils/transformFormDataToPayload.ts +++ b/frontend/src/widgets/ClusterConfigForm/utils/transformFormDataToPayload.ts @@ -219,7 +219,8 @@ export const transformFormDataToPayload = (data: ClusterConfigFormValues) => { config.properties = { 'security.protocol': securityProtocol, 'sasl.mechanism': 'OAUTHBEARER', - 'sasl.client.callback.handler.class': 'io.kafbat.ui.sasl.azure.entra.AzureEntraLoginCallbackHandler', + 'sasl.client.callback.handler.class': + 'io.kafbat.ui.sasl.azure.entra.AzureEntraLoginCallbackHandler', 'sasl.jaas.config': getJaasConfig('SASL/Azure Entra', {}), }; break;