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() {