diff --git a/themes/src/main/resources/theme/base/account/messages/messages_en.properties b/themes/src/main/resources/theme/base/account/messages/messages_en.properties index 907aeac359..3374227277 100755 --- a/themes/src/main/resources/theme/base/account/messages/messages_en.properties +++ b/themes/src/main/resources/theme/base/account/messages/messages_en.properties @@ -264,3 +264,22 @@ socialLogin=Socail Login userDefined=User Defined removeAccess=Remove Access removeAccessMessage=You will need to grant access again, if you want to use this app account. + +#Authenticator +authenticatorStatusMessage=Two-factor authentication is currently +authenticatorFinishSetUpTitle=Your Two-Factor Authentication +authenticatorFinishSetUpMessage=Each time you sign in to your Keycloak account, you will be asked to provide a two-factor authentication code. +authenticatorSubTitle=Set Up Two-Factor Authentication +authenticatorSubMessage=To enhance the security of your account, enable at least one of the available two-factor authentication methods. +authenticatorMobileTitle=Mobile Authenticator +authenticatorMobileMessage=Use mobile Authenticator to get Verification codes as the two-factor authentication. +authenticatorMobileFinishSetUpMessage=The authenticator has been bound to your phone. +authenticatorActionSetup=Set up +authenticatorSMSTitle=SMS Code +authenticatorSMSMessage=Keycloak will send the Verification code to your phone as the two-factor authentication. +authenticatorSMSFinishSetUpMessage=Text messages are sent to +authenticatorDefaultStatus=Default +authenticatorChangePhone=Change Phone Number +authenticatorBackupCodesTitle=Backup Codes +authenticatorBackupCodesMessage=Get your 8-digit backup codes +authenticatorBackupCodesFinishSetUpMessage=12 backup codes was generated at this time. Each one can be used once. diff --git a/themes/src/main/resources/theme/keycloak-preview/account/resources/app/content/authenticator-page/authenticator-page.component.html b/themes/src/main/resources/theme/keycloak-preview/account/resources/app/content/authenticator-page/authenticator-page.component.html index f490c06d00..1bec59cd6c 100644 --- a/themes/src/main/resources/theme/keycloak-preview/account/resources/app/content/authenticator-page/authenticator-page.component.html +++ b/themes/src/main/resources/theme/keycloak-preview/account/resources/app/content/authenticator-page/authenticator-page.component.html @@ -1,46 +1,114 @@ -
+
+
+ OFF + + {{'authenticatorStatusMessage' | translate}} off +
+
-
    -
  1. -

    Install FreeOTP or Google Authenticator on your device. Both applications are available in Google Play and Apple App Store.

    -
  2. -
  3. -

    Open the application and scan the barcode or enter the key.

    -

    Figure: Barcode

    -

    MVFU 4UKB IYZU 2RBZ NJSW 2MTK NQZT QVBZ

    -
  4. -
  5. -

    Enter the one-time code provided by the application and click Save to finish the setup.

    -
  6. -
- -
- -
- -
-
- -
- -
- - -
-
- -
-
-
- - +
+
+
+
+ {{'authenticatorFinishSetUpTitle' | translate}} +
+
+

{{'authenticatorFinishSetUpMessage' | translate}}

+
+
+
+
+
+
+
+
+ +
+
+
+
+ {{'authenticatorMobileTitle' | translate}} + {{'authenticatorDefaultStatus' | translate}} +
+
+ {{'authenticatorMobileFinishSetUpMessage' | translate}} +
+
+ {{'authenticatorChangePhone' | translate}} +
+
+
+ +
+
- - +
+
+
+
+ +
+
+
+
+ {{'authenticatorSubTitle' | translate}} +
+
+

{{'authenticatorSubMessage' | translate}}

+
+
+
+
+
+
+
+
+ +
+
+
+
{{'authenticatorSMSTitle' | translate}}
+
{{'authenticatorSMSMessage' | translate}}
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
{{'authenticatorBackupCodesTitle' | translate}}
+
{{'authenticatorBackupCodesMessage' | translate}}
+
+
+ +
+
+
+
+
+
diff --git a/themes/src/main/resources/theme/keycloak-preview/account/resources/styles.css b/themes/src/main/resources/theme/keycloak-preview/account/resources/styles.css index 39ba300789..ddf912c206 100644 --- a/themes/src/main/resources/theme/keycloak-preview/account/resources/styles.css +++ b/themes/src/main/resources/theme/keycloak-preview/account/resources/styles.css @@ -357,3 +357,41 @@ p.description { display: none; } } + + +/* authenticator style */ +.list-pf { + border-bottom: 0; +} +.list-authenticator { + margin: 0 0 30px 0; +} +.list-authenticator-item { + border-color: #ededed; + border-left-color: #fff; + border-right-color: #fff; + border-style: solid; + border-width: 1px; + border-top: none; +} +.list-authenticator .list-pf-icon { + font-size: 1.8em; + height: 20px; + line-height: 30px; + width: 10px; + align-items: normal; +} +.list-authenticator .list-pf-title { + font-size: 15px; + font-weight: 600; +} +.top-margin-m { + margin-top: 16px; +} +.authenticator-entry { + font-size: 14px; +} +.authenticator-label { + font-size: 75%; + margin-left: 4px; +}