From d3200708b50f72e63f5669dabd94c70b366fb364 Mon Sep 17 00:00:00 2001 From: shriharsh Date: Tue, 31 Oct 2017 14:04:48 +0530 Subject: [PATCH] Issue #7 feat: SMS OTP for reset credentials --- provider/.gitignore | 3 +++ EmailAndPhone.iml => provider/EmailAndPhone.iml | 0 pom.xml => provider/pom.xml | 0 .../main/java/org/sunbird/aws/snsclient/SnsClientFactory.java | 0 .../java/org/sunbird/aws/snsclient/SnsNotificationService.java | 0 .../java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java | 0 .../sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java | 0 .../keycloak/KeycloakSmsAuthenticatorCredentialProvider.java | 0 .../KeycloakSmsAuthenticatorCredentialProviderFactory.java | 0 .../org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java | 0 .../org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java | 0 .../services/org.keycloak.authentication.AuthenticatorFactory | 0 .../services/org.keycloak.credential.CredentialProviderFactory | 0 {templates => provider/templates}/password-reset-email.ftl | 0 {templates => provider/templates}/sms-validation-error.ftl | 0 {templates => provider/templates}/sms-validation.ftl | 0 16 files changed, 3 insertions(+) create mode 100644 provider/.gitignore rename EmailAndPhone.iml => provider/EmailAndPhone.iml (100%) rename pom.xml => provider/pom.xml (100%) rename {src => provider/src}/main/java/org/sunbird/aws/snsclient/SnsClientFactory.java (100%) rename {src => provider/src}/main/java/org/sunbird/aws/snsclient/SnsNotificationService.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProvider.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProviderFactory.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java (100%) rename {src => provider/src}/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java (100%) rename {src => provider/src}/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory (100%) rename {src => provider/src}/main/resources/META-INF/services/org.keycloak.credential.CredentialProviderFactory (100%) rename {templates => provider/templates}/password-reset-email.ftl (100%) rename {templates => provider/templates}/sms-validation-error.ftl (100%) rename {templates => provider/templates}/sms-validation.ftl (100%) diff --git a/provider/.gitignore b/provider/.gitignore new file mode 100644 index 00000000..534940e6 --- /dev/null +++ b/provider/.gitignore @@ -0,0 +1,3 @@ +target/* +out/* +.idea/* \ No newline at end of file diff --git a/EmailAndPhone.iml b/provider/EmailAndPhone.iml similarity index 100% rename from EmailAndPhone.iml rename to provider/EmailAndPhone.iml diff --git a/pom.xml b/provider/pom.xml similarity index 100% rename from pom.xml rename to provider/pom.xml diff --git a/src/main/java/org/sunbird/aws/snsclient/SnsClientFactory.java b/provider/src/main/java/org/sunbird/aws/snsclient/SnsClientFactory.java similarity index 100% rename from src/main/java/org/sunbird/aws/snsclient/SnsClientFactory.java rename to provider/src/main/java/org/sunbird/aws/snsclient/SnsClientFactory.java diff --git a/src/main/java/org/sunbird/aws/snsclient/SnsNotificationService.java b/provider/src/main/java/org/sunbird/aws/snsclient/SnsNotificationService.java similarity index 100% rename from src/main/java/org/sunbird/aws/snsclient/SnsNotificationService.java rename to provider/src/main/java/org/sunbird/aws/snsclient/SnsNotificationService.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticator.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorConstants.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProvider.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProvider.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProvider.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProvider.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProviderFactory.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProviderFactory.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProviderFactory.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorCredentialProviderFactory.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorFactory.java diff --git a/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java b/provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java similarity index 100% rename from src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java rename to provider/src/main/java/org/sunbird/keycloak/KeycloakSmsAuthenticatorUtil.java diff --git a/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory b/provider/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory similarity index 100% rename from src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory rename to provider/src/main/resources/META-INF/services/org.keycloak.authentication.AuthenticatorFactory diff --git a/src/main/resources/META-INF/services/org.keycloak.credential.CredentialProviderFactory b/provider/src/main/resources/META-INF/services/org.keycloak.credential.CredentialProviderFactory similarity index 100% rename from src/main/resources/META-INF/services/org.keycloak.credential.CredentialProviderFactory rename to provider/src/main/resources/META-INF/services/org.keycloak.credential.CredentialProviderFactory diff --git a/templates/password-reset-email.ftl b/provider/templates/password-reset-email.ftl similarity index 100% rename from templates/password-reset-email.ftl rename to provider/templates/password-reset-email.ftl diff --git a/templates/sms-validation-error.ftl b/provider/templates/sms-validation-error.ftl similarity index 100% rename from templates/sms-validation-error.ftl rename to provider/templates/sms-validation-error.ftl diff --git a/templates/sms-validation.ftl b/provider/templates/sms-validation.ftl similarity index 100% rename from templates/sms-validation.ftl rename to provider/templates/sms-validation.ftl