diff --git a/forms/common-themes/src/main/resources/theme/account/base/messages/messages.properties b/forms/common-themes/src/main/resources/theme/account/base/messages/messages.properties index 9dfa90a834..6feedf537d 100755 --- a/forms/common-themes/src/main/resources/theme/account/base/messages/messages.properties +++ b/forms/common-themes/src/main/resources/theme/account/base/messages/messages.properties @@ -1,4 +1,4 @@ -authenticatorCode=One-time-password +authenticatorCode=One-time code email=Email errorHeader=Error! firstName=First name @@ -23,8 +23,8 @@ invalidTotp=Invalid authenticator code readOnlyUser=You can't update your account as it is read only readOnlyPassword=You can't update your password as your account is read only -successTotp=Google authenticator configured. -successTotpRemoved=Google authenticator removed. +successTotp=Mobile authenticator configured. +successTotpRemoved=Mobile authenticator removed. accountUpdated=Your account has been updated accountPasswordUpdated=Your password has been updated diff --git a/forms/common-themes/src/main/resources/theme/account/base/totp.ftl b/forms/common-themes/src/main/resources/theme/account/base/totp.ftl index d05dd8b616..d48033734b 100755 --- a/forms/common-themes/src/main/resources/theme/account/base/totp.ftl +++ b/forms/common-themes/src/main/resources/theme/account/base/totp.ftl @@ -12,25 +12,32 @@ - FreeOTP + Mobile - + <#else> -

Google Authenticator Setup

+

Authenticator


    -
  1. Download the FreeOTP app in your device.
  2. -
  3. Create an account in FreeOTP and scan the barcode or type in the provided key below.
    +
  4. + Install FreeOTP or + Google Authenticator + on your mobile +
  5. +
  6. + Open the application and scan the barcode or enter the key
    Figure: Barcode
    ${totp.totpSecretEncoded}
  7. -
  8. Enter the one-time-password provided by FreeOTP below and click Submit to finish the setup.
  9. +
  10. + Enter the one-time code provided by the application and click Submit to finish the setup. +

diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl index 48482553a9..d71536c965 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl @@ -30,13 +30,16 @@ <#elseif section = "info" >
  1. -

    ${rb.loginTotpStep1_1} ${rb.loginTotpStep1_2} ${rb.loginTotpStep1_3}

    +

    ${rb.loginTotpStep1}

  2. ${rb.loginTotpStep2}

    Figure: Barcode
    ${totp.totpSecretEncoded}
  3. +
  4. +

    ${rb.loginTotpStep3}

    +
diff --git a/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties b/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties index ff0e6ad660..6b12161085 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties +++ b/forms/common-themes/src/main/resources/theme/login/base/messages/messages.properties @@ -26,7 +26,7 @@ submit=Submit yes=Yes no=No -authenticatorCode=One-time-password +authenticatorCode=One-time code clientCertificate=Client Certificate invalidUser=Invalid username or password. @@ -47,8 +47,8 @@ invalidPasswordExisting=Invalid existing password invalidPasswordConfirm=Password confirmation doesn't match invalidTotp=Invalid authenticator code -successTotp=FreeOTP authenticator configured. -successTotpRemoved=FreeOTP authenticator removed. +successTotp=Mobile authenticator configured. +successTotpRemoved=Mobile authenticator removed. usernameExists=Username already exists emailExists=Email already exists @@ -60,13 +60,11 @@ loginOauthTitle=Temporary access. loginOauthTitleHtml=Temporary access requested. Login to grant access. loginForgot=Forgot -loginTotpTitle=FreeOTP Authenticator Setup -loginTotpStep1_1=Download the -loginTotpStep1_2=FreeOTP Authenticator app -loginTotpStep1_3=in your device. -loginTotpStep2=Create an account in FreeOTP and scan the barcode or type in the provided key below. -loginTotpStep3=Enter the one-time-password provided by FreeOTP below and click Submit to finish the setup. -loginTotpOneTime=One-time-password +loginTotpTitle=Mobile Authenticator Setup +loginTotpStep1=Install FreeOTP or Google Authenticator on your mobile +loginTotpStep2=Open the application and scan the barcode or enter the key +loginTotpStep3=Enter the one-time code provided by the application and click Submit to finish the setup +loginTotpOneTime=One-time code loginProfileTitle=Update Account Information loginProfileWarning=Your account is not enabled because you need to update your account information. @@ -91,7 +89,7 @@ errorTitle=We're sorry... errorTitleHtml=We're sorry ... errorGenericMsg=Something happened and we could not process your request. actionWarningHeader=Your account is not enabled. -actionTotpWarning=You need to set up the FreeOTP Authenticator to activate your account. +actionTotpWarning=You need to set up Mobile Authenticator to activate your account. actionProfileWarning=You need to update your user profile to activate your account. actionPasswordWarning=You need to change your password to activate your account. actionEmailWarning=You need to verify your email address to activate your account. diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/account/AccountTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/account/AccountTest.java index cffdda8386..a3329d8beb 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/account/AccountTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/account/AccountTest.java @@ -348,7 +348,7 @@ public class AccountTest { totpPage.configure(totp.generate(totpPage.getTotpSecret())); - Assert.assertEquals("Google authenticator configured.", profilePage.getSuccess()); + Assert.assertEquals("Mobile authenticator configured.", profilePage.getSuccess()); events.expectAccount(EventType.UPDATE_TOTP).assertEvent(); diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/AccountTotpPage.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/AccountTotpPage.java index 99716a2e47..da59926cf8 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/AccountTotpPage.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/AccountTotpPage.java @@ -44,7 +44,7 @@ public class AccountTotpPage extends AbstractAccountPage { @FindBy(css = "button[type=\"submit\"]") private WebElement submitButton; - @FindBy(id = "remove-google") + @FindBy(id = "remove-mobile") private WebElement removeLink; public void configure(String totp) { diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/LoginConfigTotpPage.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/LoginConfigTotpPage.java index edb8cc5a36..4f6a5ab699 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/LoginConfigTotpPage.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/pages/LoginConfigTotpPage.java @@ -48,7 +48,7 @@ public class LoginConfigTotpPage extends AbstractPage { } public boolean isCurrent() { - return driver.getTitle().equals("FreeOTP Authenticator Setup"); + return driver.getTitle().equals("Mobile Authenticator Setup"); } public void open() {