Skip to content

Commit

Permalink
Issue #9 chores: Removed unwanted code
Browse files Browse the repository at this point in the history
  • Loading branch information
shriharshs committed Nov 13, 2017
1 parent 94e5071 commit 559e61f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 559e61f

Please sign in to comment.