Skip to content

Commit

Permalink
Issue #9 chores: Added more logs to check the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shriharshs committed Nov 13, 2017
1 parent 6c59719 commit 94e5071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public class KeycloakSmsAuthenticatorConstants {
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 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 @@ -69,6 +69,7 @@ public static Long getConfigLong(AuthenticatorConfigModel config, String configN

public static String createMessage(String code, String mobileNumber, AuthenticatorConfigModel config) {
String text = KeycloakSmsAuthenticatorUtil.getConfigString(config, KeycloakSmsAuthenticatorConstants.CONF_PRP_SMS_TEXT);
logger.debug("KeycloakSmsAuthenticatorUtil@createMessage : templateText - " + text);
text = text.replaceAll("%sms-code%", code);
text = text.replaceAll("%phonenumber%", mobileNumber);

Expand Down

0 comments on commit 94e5071

Please sign in to comment.