From 559e61fb164a952b6ddc902602b9e0a0f02a031a Mon Sep 17 00:00:00 2001 From: shriharsh Date: Mon, 13 Nov 2017 14:28:13 +0530 Subject: [PATCH] Issue #9 chores: Removed unwanted code --- .../KeycloakSmsAuthenticatorConstants.java | 5 ----- .../KeycloakSmsAuthenticatorFactory.java | 16 ---------------- 2 files changed, 21 deletions(-) diff --git a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java index f880e25b..a88cefee 100644 --- a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java +++ b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java @@ -14,14 +14,9 @@ public class KeycloakSmsAuthenticatorConstants { public static final String CONF_PRP_SMS_CODE_LENGTH = "sms-auth.code.length"; public static final String CONF_PRP_SMS_TEXT = "sms-auth.msg.text"; - // AWS - public static final String CONF_PRP_SMS_CLIENTTOKEN = "sms-auth.sms.clienttoken"; - public static final String CONF_PRP_SMS_CLIENTSECRET = "sms-auth.sms.clientsecret"; - // User credentials (used to persist the sent sms code + expiration time cluster wide) public static final String USR_CRED_MDL_SMS_CODE = "sms-auth.code"; public static final String USR_CRED_MDL_SMS_EXP_TIME = "sms-auth.exp-time"; -// public static final String AMAZON_SNS_PROVIDER_CONFIGURATIONS_PATH = "sms-provider/awsSnsCreds.json"; public static final String MSG91_SMS_PROVIDER_CONFIGURATIONS_PATH = "sms-provider/Msg91Creds.json"; } diff --git a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java index 8d9c713a..34d935fa 100644 --- a/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java +++ b/keycloak/sms-provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java @@ -57,22 +57,6 @@ public class KeycloakSmsAuthenticatorFactory implements AuthenticatorFactory, Co property.setType(ProviderConfigProperty.STRING_TYPE); property.setHelpText("Use %sms-code% as placeholder for the generated SMS code. Use %user% and %password% as placeholder when 'In message' authentication is used."); configProperties.add(property); - - // SMS Gateway - - property = new ProviderConfigProperty(); - property.setName(KeycloakSmsAuthenticatorConstants.CONF_PRP_SMS_CLIENTTOKEN); - property.setLabel("AWS Client Token"); - property.setType(ProviderConfigProperty.STRING_TYPE); - property.setHelpText("AWS Client Token."); - configProperties.add(property); - - property = new ProviderConfigProperty(); - property.setName(KeycloakSmsAuthenticatorConstants.CONF_PRP_SMS_CLIENTSECRET); - property.setLabel("AWS Client Secret"); - property.setHelpText("AWS Client Secret"); - property.setType(ProviderConfigProperty.STRING_TYPE); - configProperties.add(property); } public String getId() {